PDA

View Full Version : [ubuntu] Gnome / unity Oneiric automount in other Window Manager



RMKrug
October 20th, 2011, 01:05 PM
Hi

I installed Ubuntu Oneiric, but my main window manager is fluxbox. I used to be able to use the nautilus auto mounter to automount USB devices, but I don't managed after the upgrade. I resorted to installing thunar-volman, but as I have Unity / gnome installed, I would like to use the automounter from unioty or gnome.

How can I achieve this? gnome-volume-manager does not exist in Oneiric, and nautilus -n does not reslut in automounting. Any suggestions?

Thanks,

Rainer

crdlb
October 20th, 2011, 04:17 PM
GNOME's automounter is a plugin to gnome-settings-daemon now. It was moved out of nautilus since nautilus doesn't manage the desktop by default anymore (upstream).

RMKrug
October 21st, 2011, 09:00 AM
Thanks - that explains.

Cheers,

Rainer

dfacto
October 24th, 2011, 01:59 AM
So what is the preferred way to re-enable automount of USB drives?

crdlb
October 24th, 2011, 03:04 AM
I wasn't completely correct in my previous post. In GNOME Shell, automounting is handled in the Shell process. For fallback mode, there is an automounter bundled with gnome-settings-daemon, but it isn't a plugin. There is an autostart file to run /usr/lib/gnome-settings-daemon/gnome-fallback-mount-helper in "GNOME3 unless-session gnome-shell", i.e. fallback mode and Unity.

So, I suspect you could just run that.

dfacto
October 24th, 2011, 11:27 PM
I'm at work now, but when I get home I'll give something like this a try:


cp /etc/xdg/autostart/gnome-fallback-mount-helper.desktop ~/.config/autostart/
sudo service lightdm restart &

crdlb
October 25th, 2011, 12:03 AM
I'm at work now, but when I get home I'll give something like this a try:


cp /etc/xdg/autostart/gnome-fallback-mount-helper.desktop ~/.config/autostart/
sudo service lightdm restart &


You'll still need to remove the OnlyShowIn and AutostartCondition lines, and you need something in your session that supports the XDG autostart spec.

dfacto
October 25th, 2011, 12:25 AM
What is the XDG autostart spec?

crdlb
October 25th, 2011, 01:20 AM
What is the XDG autostart spec?

http://standards.freedesktop.org/autostart-spec/autostart-spec-latest.html

It is the specification that makes putting a file in /etc/xdg/autostart/ or ~/.config/autostart/ have meaning.

P.S. It turns out that automounting was a plugin to g-s-d in 3.0, but it was moved to the Shell (and the fallback helper binary) for 3.2.

dfacto
October 25th, 2011, 04:12 PM
Running


/usr/lib/gnome-settings-daemon/gnome-fallback-mount-helper

didn't do anything. It also didn't print any events when I inserted the USB flash drive.