You are not logged in.

#1 2013-03-13 18:26:06

Pacopag
Member
Registered: 2011-05-29
Posts: 287

[SOLVED] Openbox+Thunar, how to show usb devices in thunar?

Hi.  I've been running a pretty standard Xfce environment for a while.  When I plug in a usb drive, I get a new item pop up in the "DEVICES" section of the left panel in thunar (note, it doesn't automount the device, it just shows that it's there and only mounts it when I click on it...I like this behaviour).

Now, I'm setting up an even lighter-weight environment, just openbox and tint2 with thunar as the file manager.  But when I'm logged into the openbox environment, I don't get the item in the "DEVICES" section in thunar (but it still works fine in xfce).

If it run thunar from the command line and plug in a usb drive I get this message in the terminal

(thunar:21205): thunar-WARNING **: Failed to launch the volume manager (Failed to execute child process "thunar-volman" (No such file or directory)), make sure you have the "thunar-volman" package installed.

I don't see why I would need thunar-volman if it works fine in xfce.  If I install thunar-volman and do the same, I get this message

thunar-volman: Unsupported USB device type.
thunar-volman: Unsupported USB device type.
thunar-volman: Unknown block device type.

So I'm wondering if maybe there is a daemon that is autostarted during an xfce session that makes thunar probe for devices to be plugged in or something like that.  Why does it work in an xfce session, but not in an openbox session?

Last edited by Pacopag (2013-03-14 15:52:32)

Offline

#2 2013-03-13 19:29:31

henk
Member
From: Weert, Netherlands
Registered: 2013-01-01
Posts: 334

Re: [SOLVED] Openbox+Thunar, how to show usb devices in thunar?

Have a look at theThunar page.

Offline

#3 2013-03-13 19:47:39

Pacopag
Member
Registered: 2011-05-29
Posts: 287

Re: [SOLVED] Openbox+Thunar, how to show usb devices in thunar?

Looks like all I really need is gvfs.  I've got it installed, and there appears to a process running.

[paco@archnme ~]$ ps -A | grep gvfs
19090 ?        00:00:00 gvfsd
19094 ?        00:00:00 gvfsd-fuse
19101 ?        00:00:00 gvfs-udisks2-vo
[paco@archnme ~]$ systemctl status gvfsd
gvfsd.service
	  Loaded: error (Reason: No such file or directory)
	  Active: inactive (dead)

The systemctl output looks bad to me, but it's the same in xfce where things are working fine.

Offline

#4 2013-03-14 05:19:24

henk
Member
From: Weert, Netherlands
Registered: 2013-01-01
Posts: 334

Re: [SOLVED] Openbox+Thunar, how to show usb devices in thunar?

AFAIK there is no gvfs.service in systemd. Take a look at /usr/lib/systemd for available services.

According to the gvfs page you have to install it alongside 'polkit-gnome'
to just work. It does so in LXDE.

Offline

#5 2013-03-14 09:36:22

jv2112
Member
Registered: 2011-07-23
Posts: 160

Re: [SOLVED] Openbox+Thunar, how to show usb devices in thunar?

Run udiskie in your .xinitrc and it will picl up on media being added.


Life is pleasant. Death is peaceful. It's the transition that's troublesome. Isaac Asimov - / -

Offline

#6 2013-03-14 15:41:08

Pacopag
Member
Registered: 2011-05-29
Posts: 287

Re: [SOLVED] Openbox+Thunar, how to show usb devices in thunar?

Thanks for your replies.

henk:  I tried installing polkit-gnome and creating the rule as per the wiki, but it didn't work.  Volume detection seems to work fine in xfce without this package.

jv2112:  I added udiskie to .config/openbox/autostart and it seems to work.  I've had problems with udiskie in the past; it seemed to have some trouble unmounting the drives properly after a write as I would find that the newly written files were corrupt.  But it seems to be working fine.

I'll mark this as solved, but I'm still curious as to how xfce-thunar is mounting the usb devices. 
One clue is that with udiskie, devices get mounted to /media, whereas in xfce they get mounted to /var/run/media/username/ (or something like that).

Offline

#7 2013-03-14 15:47:23

Pacopag
Member
Registered: 2011-05-29
Posts: 287

Re: [SOLVED] Openbox+Thunar, how to show usb devices in thunar?

Ok.  I got it now.  The problem was in my .xinitrc and how I was starting the openbox session.  The correct line is

exec dbus-launch openbox-session

I was missing the dbus-launch.

Now I get volume detection in openbox+thunar, without the use of udiskie,

But for the record, running udiskie at startup works too.

Last edited by Pacopag (2013-03-14 15:48:15)

Offline

Board footer

Powered by FluxBB