Skip to content

Instantly share code, notes, and snippets.

@vishvendra01
Created November 14, 2014 08:50
Show Gist options
  • Save vishvendra01/07b9aca21d598a89486a to your computer and use it in GitHub Desktop.
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
#!/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)
@Mithrilwoodrat
Copy link

Thanks for your script

@abhishekgoyal-a11y
Copy link

Bug in Code (Python3)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment