linux-window-session-manager icon indicating copy to clipboard operation
linux-window-session-manager copied to clipboard

Multiple instances of the same application restored incorrectly

Open hexwit opened this issue 3 years ago • 4 comments

I have multi workspace setup. Opened Intellij Idea IDE on first workspace, and another instance of Idea IDE with another project on second workspace. Saved session and restarted machine.

Expected results: both instances restored in correct workspaces. Actual result: one instance launched on second workspace.

Is it possible to handle this issue? May be some workaround?

hexwit avatar Oct 19 '20 17:10 hexwit

Hey hexwit! Unfortunately, I haven't found a way to deal with that from lwsm. Intellij Idea (which I also use) handles its windows on its own. What you might try is editing the session file manually and to experiment with specifying a project to open from the command line interface (https://www.jetbrains.com/help/idea/working-with-the-ide-features-from-command-line.html#arguments). But apart from this I am not sure if it's possible to solve this dynamically in a convenient manner.

johannesjo avatar Oct 19 '20 18:10 johannesjo

Config editing is fine for me. I am under linux :D Thanks

hexwit avatar Oct 19 '20 19:10 hexwit

Please let me know if you can make it work!

johannesjo avatar Oct 19 '20 19:10 johannesjo

I have a similar problem. Usually my current default would be:

  • workspace 1: alacritty for running spotify-tui
  • workspace 2: vivaldi browser
  • workspace 3: vscode + alacritty
  • possible workspace 4: alacritty again (for opening files)

The extension doesn't save and restore all alacritty windows, just one.

MarceloFCandido avatar Apr 08 '22 19:04 MarceloFCandido