Disable auto-opening nautilus window after auto-mount

63,897

Solution 1

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.

Solution 2

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

gsettings set org.gnome.desktop.media-handling automount-open false

Solution 3

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

Solution 4

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.

Share:
63,897

Related videos on Youtube

Anton Cherkashyn
Author by

Anton Cherkashyn

My name is Anton Cherkashyn, I'm an Android engineer. SOreadytohelp

Updated on September 18, 2022

Comments

  • Anton Cherkashyn
    Anton Cherkashyn over 1 year

    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?

  • Nicolay Doytchev
    Nicolay Doytchev over 9 years
    This should be the answer.
  • colan
    colan over 9 years
    On Ubuntu 14.10, you just need to install "dconf Editor" (dconf-editor). Run it once it's been added to your Launcher. Then do the same thing.
  • MAKZ
    MAKZ about 9 years
    How shall I know which settings can be changed using gsettings set ? can you provide any documentation or list ?
  • Cerin
    Cerin about 9 years
    This doesn't work in Gnome-Shell. It still pops-up that notification asking to "Open with Files" or "Eject" or "Open with music player", etc.
  • fouric
    fouric about 9 years
    This didn't work for me on 15.04 with Unity. The graphical dconf solution did.
  • Stephan Henningsen
    Stephan Henningsen over 7 years
    Confirmed on 16.04. For an Android developer, this is really a relief!
  • Stoffe
    Stoffe over 7 years
    Didn't work on an earlier Ubuntu for me (15.10 or 16.04 probably) but did now work on 16.10.
  • Honghe.Wu
    Honghe.Wu about 7 years
    If run this command via sudo, it may not work, Why?
  • Shahzain ali
    Shahzain ali over 6 years
    Worked on 16.04 perfectly, Thanks man, @StephanHenningsen really :D
  • 0xC0000022L
    0xC0000022L over 6 years
    On Linux Mint this was gsettings set org.cinnamon.desktop.media-handling automount-open false for me. So cinnamon instead of gnome. Presumably this would have to changed also if you use Mate instead. Etc etc ...
  • David Foerster
    David Foerster over 6 years
    This will disable auto-mounting altogether. OP only wants do disable the pop-up windows after auto-mount. -1
  • SHIVA
    SHIVA over 6 years
    yes, it disables the auto-mounting also. my answer is only for disabling pop-up window.
  • David Foerster
    David Foerster over 6 years
    No, it's not. Please read the description of the Dconf key org.gnome.desktop.media-handling.automount (“If set to true, then Nautilus will automatically mount media such as user-visible hard disks and removable media on start-up and media insertion.”) as opposed to .automount-open (“If set to true, then Nautilus will automatically open a folder when media is automounted.”).
  • Mikko Rantalainen
    Mikko Rantalainen almost 5 years
    List all data from gsettings with descriptions: gsettings list-recursively | while read path name value; do echo "$path.$name=$value"; gsettings describe "$path" "$name"; echo; done