Created
November 14, 2014 08:50
-
-
Save vishvendra01/07b9aca21d598a89486a to your computer and use it in GitHub Desktop.
python script to hide and unhide desktop icons on gnone3 when nemo is primary file manager
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
#!/usr/bin/env python | |
import subprocess as sp | |
#nemo | |
output = sp.check_output("gsettings get org.nemo.desktop show-desktop-icons", shell=True).strip("\n") | |
print output.strip("\n") | |
if output == "true": | |
sp.call("gsettings set org.nemo.desktop show-desktop-icons false", shell=True) | |
elif output == "false": | |
sp.call("gsettings set org.nemo.desktop show-desktop-icons true", shell=True) |
Bug in Code (Python3)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks for your script