You are not logged in.

#1 2013-01-10 09:53:13

justdanyul
Member
Registered: 2011-09-29
Posts: 137

Automounting in Gnome

Basically, I wan't to control what happens when I plug in a usb stick into my computer. Currently, Gnome displays a notification saying "Open folder with Thunar", which I want to change.

Problem is, I can't find where this is configured. I checked dconf-editor and in "org.gnome.desktop.media-handling" both automount and automount-open are checked. I also tried checking PolKit, but I have no rules on the system at all in /etc/polkit-1/rules.d , is this correct.

So, in summery, very simple question. How do I change the action presented to me by gnome when a removable media is added to the system?

Offline

#2 2013-01-10 16:48:34

joetotale
Member
From: Scotland
Registered: 2010-05-17
Posts: 23

Re: Automounting in Gnome

Does this help: Execute on USB insert?
Joe

Offline

#3 2013-01-10 16:54:15

Unia
Member
From: Stockholm, Sweden
Registered: 2010-03-30
Posts: 2,486
Website

Re: Automounting in Gnome

You can define what to do in the settings, from GNOME. Open gnome-control-center -> Details -> removable media. It doesn't list automount per sé, but you can configure it to open the folder and more. It might be what you're looking for.

Other than that, perhaps Thunar doesn't work properly with gnome-desktop's way of detecting and mounting devices. It might be worth it to look into using Nautilus.


If you can't sit by a cozy fire with your code in hand enjoying its simplicity and clarity, it needs more work. --Carlos Torres

Offline

#4 2013-01-10 17:08:48

coproduct
Member
Registered: 2011-09-30
Posts: 22

Re: Automounting in Gnome

Also, if you just want to change the application used, the following command should work:

$ xdg-mime default nautilus.desktop inode/directory

You can read more about it at the wiki page: Xdg-open.

Offline

Board footer

Powered by FluxBB