I usually charge my phone through a USB connection. Due to Ubuntu 13.04 detecting and mounting it, Nautlius automatically opens the mounted folder. Can I stop Nautlius from automatically opening the folder of some mounted devices?
2 Answers
Click on Applications->System Tools->dconf Editor
In the window which opens, Select org from the side bar, then gnome and then desktop and then media-handling Uncheck the automount-open from the right side bar.
See the picture.

-
Thank you. But can I also change it for one device only? Commented May 2, 2013 at 18:27
-
worth noting that you have to do this as the user you're logged in as, not neccessarily root– stuCommented Sep 17, 2015 at 13:26
-
-
@MeinAccount – someone at least ‘solved’ this by id-speficic unmount scripts...– Frank NCommented Feb 25, 2017 at 7:20
Install Ubuntu Tweak. Open it up. Go to Tweaks -> File Manager and you'll see the option there.
xfconf-query -c thunar-volman -p /automount-drives-enabled -s falsebut I heavily suspect it won't work in "plain" Ubuntu, because this command recalls XFCE and Thunar.automount-drives/enabled