Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

App class: open() fails on multi-user system #585

Open
adriancostin6 opened this issue May 29, 2023 · 0 comments
Open

App class: open() fails on multi-user system #585

adriancostin6 opened this issue May 29, 2023 · 0 comments
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@adriancostin6
Copy link

For my specific use-case, of running GUI automation tests using Sikuli on a datacenter with multiple users, the App class fails to open my application as there are multiple other processes with the same name on the system, so it bypasses the _osutil.open line.
From having a closer look at the code, I can see the following behavior when trying to call App.open() with a full path to an executable on Windows. First, it checks if the path pointing to a valid location, then it extracts the application executable name from the path and runs a search on all the open processes to see if a process with that name already exists, and if so it uses that process instead of creating a new one.
I believe that the user should have a choice of whether he/she wishes to opt in for this functionality, and it should not be default, as it breaks the use-case described above, where other processes with the same name are running, but the user wishes to spawn a new one regardless.

@RaiMan RaiMan self-assigned this Jun 25, 2023
@RaiMan RaiMan added the enhancement New feature or request label Jun 25, 2023
@RaiMan RaiMan added this to the 2.0.6 milestone Jun 25, 2023
@RaiMan RaiMan changed the title App.open() fails on multi-user system App class: open() fails on multi-user system Aug 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants