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?
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.