-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
different workspaces in single instances not correctly opened #14747
Comments
I can reproduce the issue. Something seems to go wrong when handling the command line parameters for the second "instance" (i.e. window). The error is likely located here or at least should be investigated starting from there. |
I can confirm that this is fixed in the Electron example application in the Theia repository. Still should be retested again once we have new Theia IDE build. |
@tsmaeder The 1.59.0 preview build does not fix the issue! The second "instance" still opens without an opened directory |
@sdirix what command are you using to test this? |
Considering it works with the in-repo version of theia, there must be something going on with the handling of cmd-line parameters in the native launcher. |
I can confirm that doing
does not open the |
This is weird, since we're just listening to the 'second-instance' event on the electron app object. The only reason I can think why this should work differently is if the built version of electron somehow sending a different |
It might be that we're simply running into this problem: electron/electron#4690 (comment) |
It's a bit weird how we determine whether the app is packaged in |
@jfaltermeier what's the best way to test a fix that only happens in the built version of TheiaIDE? |
I think the easiest way is to publish your Theia build to a local npm registry like Verdaccio. This should be roughly how it looks: In the Theia repository: In the Theia IDE repository: |
Fixes eclipse-theia#14747 Contributed on behalf of STMicroelectronics Signed-off-by: Thomas Mäder <[email protected]>
Bug Description:
When trying to open several single instances of Theia AppImage or Snap app (Ubuntu 24.04), only the first instance opens the given workspace.
Steps to Reproduce:
I didn't build Theia myself. I tried this with the downloadable AppImage and also with the snap package for Ubuntu 24.04.
Additional Information
The text was updated successfully, but these errors were encountered: