Skip to content

Instantly share code, notes, and snippets.

@plesiv
Created December 22, 2014 20:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save plesiv/c7433ef80554b33fb646 to your computer and use it in GitHub Desktop.
Save plesiv/c7433ef80554b33fb646 to your computer and use it in GitHub Desktop.
Gnome - mounted volumes: on desktop, prevented auto-open
#!/usr/bin/env sh
# source: http://askubuntu.com/questions/194705/how-do-i-get-a-usb-drive-shortcut-on-desktop
# Show volumes on desktop
gsettings set org.gnome.nautilus.desktop volumes-visible true
# Don't auto-open mounted volumes
gsettings set org.gnome.desktop.media-handling automount-open false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment