Linux Essentials is a collection of Shell Scripts that restarts the desktop environment, but does not close any windows. It also updates the system.
Running Linux Essentials
Download shell scripts from here and extract them you can use the following scripts
To use it on kde, just type in your terminal
To use it on Gnome, just type in your terminal
To use it on Xfce, just type in your terminal
There is currently one problem. On Gnome, there might be a lot of windows popping up. This is one solution: