How to avoid files from opening when mounting a device

Asked by Christian Nänni

Hi

I use a script after login to mount a number of SMB shares. For each of the shares mounted, files will open a new window.
How can I configure files not to open when a drive or share is mounted?

Thanks
Christian

Question information

Language:
English Edit question
Status:
Solved
For:
Files Edit question
Assignee:
No assignee Edit question
Solved by:
fredrik lundin
Solved:
Last query:
Last reply:
Revision history for this message
Best fredrik lundin (flurick) said :
#1

Run this command in the terminal: "gsettings set org.gnome.desktop.media-handling automount-open false"
To enable auto opening again run: "gsettings set org.gnome.desktop.media-handling automount-open true"

Revision history for this message
Christian Nänni (christian-naenni) said :
#2

Thanks Fredrik, that worked (did through dconf-editor though).