I have a couple of scripts to work around Gnome Shell's inability to work well automatically when swapping between FHD (1080p) and UHD (4k) screens. I set various things with gsettings
, restart nemo, but the final bit of the puzzle is how to restart gnome-shell.
If I do gnome-shell -r
from my script then that process then owns gnome-shell, so I can't close the terminal without it killing the shell. Doh!
Is there a way to tell Gnome to restart itself and carry on running separately from the process that requested the restart?