197

Every time I plug a USB stick in, nautilus opens a new window with the contents of the drive. I would like to disable this auto-opening of the nautilus window, but I would like the actual auto-mount to keep working. Is this possible?

Dominik
  • 139
Anton Cherkashyn
  • 4,064
  • 3
  • 21
  • 18

5 Answers5

305

The simplest option is to open a terminal with Ctrl+Alt+T, and type:

gsettings set org.gnome.desktop.media-handling automount-open false
Zanna
  • 72,312
ish
  • 141,990
80

Turns out, it is. You will need dconf-editor tool, which can be installed by with sudo apt-get install dconf-tools. Run dconf-editor in your terminal. Browse to org -> gnome -> desktop - media-handling. Uncheck automount-open.

Anton Cherkashyn
  • 4,064
  • 3
  • 21
  • 18
22

The setting corresponding to izx's to disable automatically launching nemo in the cinnamon desktop is:

gsettings set org.cinnamon.desktop.media-handling automount-open false
kynan
  • 2,235
1

For MATE Desktop Environment, which uses the Caja file manager:

gsettings set org.mate.media-handling automount-open false

or use Caja File Management Preferences (caja-file-management-properties) - on Media tab uncheck Browse media when inserted checkbox.

Not for Gnome or Cinnamon desktop environments, however MATE/Caja is a close relative.

N0rbert
  • 103,263
Tymek
  • 170
  • 1
  • 3
-1

Using GUI in debian gnome desktop:

Open dconf-editor then go to org -> gnome -> desktop - media-handling. There uncheck automount.

SHIVA
  • 109