Created
October 24, 2020 23:11
-
-
Save echuber2/a7e1c57a108283082b1f6bf8f076d3a5 to your computer and use it in GitHub Desktop.
Restart nemo in Cinnamon
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
echo Asking nemo to quit... | |
nemo --quit & | |
sleep 2 | |
echo Killing nemo... 6 seconds remaining | |
killall -9 nemo | |
nemo --quit & | |
sleep 2 | |
echo Killing nemo... 4 seconds remaining | |
nemo --quit & | |
sleep 2 | |
echo Killing nemo... 2 seconds remaining | |
killall nemo | |
sleep 2 | |
killall -9 nemo | |
echo Resetting background... | |
gsettings set org.nemo.desktop background-fade false | |
gsettings set org.nemo.desktop background-fade true | |
echo Restarting nemo... | |
nemo -n > /dev/null 2>&1 & disown |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This script was meant to restart nemo independently from Cinnamon if it begins acting strangely. It may not be needed in newer versions of nemo. The multiple rounds of quitting and killing were (originally) necessary to get it to actually quit and restart successfully.
I forget why I had the
gsettings
calls. Something used to get weird with desktop icons from time to time too.