On 10/15/2012 08:48 PM, Tobias Gasser wrote:
> Am 10/15/12 17:50, schrieb Armin K.:
>
>>
>> Thunar can utilize Gvfs in order to auto mount removable media such as
>> usb sticks or cd's. I'd recommend using previous version of Gvfs
>> (1.12.x) if you want to use it with Xfce. Current version in the book
>> had some issues. You will also need to make sure that your session is
>> properly registered with ConsoleKit (start your session with
>> ck-launch-session or use some desktop manager which supports consolekit).
>>
>
> xfce is started with - "startxfce4 --with-ck-launch". (i start with
> runlevel 3, without starting x. so i can kill the x session and go to
> the commandline to fiddle arround and don't have to reboot but just to
> start my x4 which is a script with just 1 line: 'startxfce4
> --with-ck-launch')
>
> i had gvfs 1.13.9, the latest 1.13. as far as i remember 1.14 requires
> gnome3. i now removed 1.13.9 and installed 1.12.3, the latest 1.12.
>
> but no change. even after a reboot.
>
> in 'removable drives and media' i have 'mount removable drives when
> hot-plugged', 'mount removable media when inserted' and 'browse
> removable media when inserted' active.
>
> inserting a cd/dvd behaves as expected.
>
> inserting a sd- or cf-card into the card-reader behaves as inserting an
> usb-stick: nothing happens.
>
>
> for with udev i have a script (based on usbmount from debian) which
> detects plugged in usb-sticks and sd-/cf-cards and mounts / unmounts
> fine. but thunar / xfce does not do anything.
>
> the kernel-log shows the system recognises the devices. fdisk -l shows
> them too. but nothing happens. if i have /media open in the
> file-manager, i can see the devices occur on insert and vanish on remove
> if my script is active. but i expect to get either a new file-manager
> window with the new device or at least a new desktop icon with a link
> the this device.
>
> whenever i changed something i always try twice: once with my
> udev/usbmount and once without (meaning a 'exit 0' as line 2, where as
> line 1 is the standard '#!/bin/bash'.
>
> my script always mountd/umounts the stick or card, but whatever i try,
> thunar / xfce just seems to ignore any usb- and / or mount-events. as
> cd/dvd are recognised and even open a window, the notification seems to
> be ok.
>
> if there would be a global desktop-directory, i could just create a
> symlink to the mountpoint. but i was not able to find any "global
> desktop"-directory for xfce. as the script is started by udev, i don't
> know how to see which user(s) are active, thus i can't even put the link
> into the active users desktop-directory. what i can do is putting a link
> into each defined users desktop-directory. this works fine, but i really
> would like to learn and understand how to to it the RIGHT way.
>
> i have no idea about d-bus, polkit or consolekit. maybe i have to fiddle
> there...
>
> btw:
> inserting a cd/dvd behaves as expected: the cd/dvd i mounted and a
> windows pops up.
> BUT: i can't find a eject button. the drive is locked, i even can't
> eject by pressing the drives button - i have to go to the commandline.
>
>
>
> thanks for your help
> tobias
>
>

Oh well, that is interesting. Do you get any permission denied when you 
plug in your usb or mmc?

Also, can you please post output of "ck-list-sessions" ran when Xfce 
session is started.

Also, have you built Gvfs with Udisks support? Udev rules should trigger 
the mount as far as I know.

Any diversions from the book? Is Gvfs installed into same prefix as glib 
(/usr)? At least drives should be displayed at Thunar's left panel if 
everything is ok.

And at last, what is your output of "ps aux" when you are running Xfce? 
Are Gvfs daemon and related helper binaries started?

$ ps aux | grep -i gvfs
armin      724  0.0  0.0  30636  2964 ?        Sl   21:54   0:00 
/usr/lib/gvfs/gvfsd
armin      805  0.0  0.0  61264  4988 ?        Sl   21:54   0:00 
/usr/lib/gvfs/gvfs-udisks2-volume-monitor
armin      814  0.0  0.0  30560  2864 ?        Sl   21:54   0:00 
/usr/lib/gvfs/gvfs-gphoto2-volume-monitor
armin     1271  0.0  0.0  49500  3572 ?        Sl   22:02   0:00 
/usr/lib/gvfs/gvfsd-trash --spawner :1.7 /org/gtk/gvfs/exec_spaw/0
armin     1279  0.0  0.0  20548  2628 ?        Sl   22:02   0:00 
/usr/lib/gvfs/gvfsd-metadata
armin     1283  0.0  0.0  39748  2884 ?        Sl   22:02   0:00 
/usr/lib/gvfs/gvfsd-burn --spawner :1.7 /org/gtk/gvfs/exec_spaw/1

You might not have all of these running. It all depends on installed 
dependencies at build time. But at least gvfsd and 
gvfs-udisks2-volume-monitor should be running. udisksd too (Udisks 2.0.0 
daemon).
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to