lwsm works from command line but not the Gnome desktop extension
See original GitHub issueYour Environment
- Version used: 2.1.28
- Operating System and version: Ubuntu 18.10
- Desktop Environment: Gnome 3.30.1
- Node version: 8.11.3
Expected Behavior
I have the Gnome lwsm desktop extension installed and want to be able to save and load using that.
Current Behavior
I can save and restore using the command line, and saved sessions are listed in the desktop extension, but when I attempt to save or restore using the desktop extension I see a status notification “lwsm: save test” for a couple of seconds, and then it changes to “lwsm: save test UNKNOWN ERROR”.
I get the same result if I try to restore one of the sessions saved using the command line. But if I restore from the command line, it works fine.
I tried changing the path in the extension config but can confirm that is correct (because if I invalidate it I get an error about it not finding the executable).
The extension is accessible in gnome ‘tweak UI’, and I can use that to change the path to lwsm, and to enable and disable the extension.
Steps to Reproduce (for bugs)
Click on the extension icon, type a description and click the save icon.
NOTE: I have nvm installed and had problems locating the executable because I’m using node 8.12 by default, but somehow have lwsm installed only for 8.11.3. So to use lwsm in the terminal I have to nvm use 8.11.3
first. This doesn’t appear to be related, but I mention it in case. I’m also wondering how to fix this! For now I’ll just use an alias for lwsm.
Supplementary Question:
Is there a simple way to have the terminal windows restored to their current directory?
Issue Analytics
- State:
- Created 4 years ago
- Comments:12 (7 by maintainers)
Top GitHub Comments
There is a watcher for the exit code of lwsm. If the error code is anything else than
0
the message appears (the wording could probably be better). So it means that lwsm is throwing some sort of error. I don’t know what the proper way is to get the console output. The only documentation available is for the C (Rust??) version of the lib (https://developer.gnome.org/pygobject/stable/glib-functions.html#function-glib--child-watch-add). It’s really not much fun programming gnome shell extensions…Yes I meant bash 😃 was answering from my mobile…
Another alternative would be debugging the gnome shell extension directly, by using
lg
: https://stackoverflow.com/questions/8425616/how-to-test-debug-gnome-shell-extensions-is-there-any-tool-for-thatI’m assuming that, because the extension might not use the node version defined by nvm, as the path for that is usually set by some configuration in the .bashrc etc. Could be a different issue of course. It’s not really a login shell, but in the context of the extension the .bashrc is most likely not loaded.