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

Bug in restoring session with --closeAllOpenWindows from Terminal

Open dadwalgd opened this issue 3 years ago • 2 comments

Your Environment

  • Version used: 4.0.5
  • Operating System and version: Ubuntu 21.10
  • Desktop Environment:
  • Node version:
  • List of Applications that are open (lwsm save) or should be opened (lwsm restore):

Expected Behavior

It is expected that when in restore session with --closeAllOpenWindows option from terminal, either it should close the terminal and restore the session or if that's not possible it should avoid closing terminal and restore all other windows of stored session

Current Behavior

What I am seeing on using --closeAllOpenWindows option from terminal is that, it first asks to close the terminal. And If i choose to close the terminal, then restoration of session is stopped as well. In the other case, the process stops at closing open windows and nothing happens afterwards ( as It was unable to close the terminal ( one of the open windows ).

Steps to Reproduce (for bugs)

1.Open the terminal 2.Open some windows for ex. files, system monitor, settings etc.. 3.type command " lwsm save "session_name" " into the terminal 4.now close all open windows except terminal 5.Then restore the saved session with --closeAllOpenWindows option by typing the command " lwsm restore "session_name" --closeAllOpenWindows "

Screenshot from 2021-12-10 20-07-26

dadwalgd avatar Dec 10 '21 14:12 dadwalgd

How about executing lwsm restore &?

Apart from that: PRs are welcome!

johannesjo avatar Dec 10 '21 15:12 johannesjo

How about executing lwsm restore &?

Apart from that: PRs are welcome!

No, that doesn't work. It closes the terminal (during closeAllWindows process) and then nothing happens(no restoration).

dadwalgd avatar Dec 17 '21 12:12 dadwalgd