gnomesome
gnomesome copied to clipboard
After screen lock and unlock the current layout of each screen reverts to default
Using Ubuntu 18.04 when I unlock the screen, the current layout for each screen reverts to default (float) and the indicator in the status panel shows the default as well
So I did some digging on this, and I think it's related to how extensions work on gnome shell. They are unloaded and loaded again every time the screen locks and unlocks, I think it's a security thing, unsure but I saw some extensions having problems by not correctly unloading on lock and appearing on the lock screen.
That said, I think the solution for this problem is to have a way to save/cache the current layout on each workspace as a temporary file somewhere, and restore it in case it exists on the next load.
I took a look at the code but between javascript and the badly documented Gnome Shell Extension API, I have no idea how to implement that code myself. I am leaving this here in case someone smarter than me eventually sees it. @rehaby @ChWick