You are not logged in.

#1 2010-03-04 09:27:40

jarryson
Member
Registered: 2007-02-18
Posts: 298

[SOLVED]GVFS can not mount removable media, but devicekit(udisks) can

Now i have removed hal completely, but i met a problem while automount removable media.

i am using xfce4.6 and slim. i am starting xfce4 through "ck-launch-session startxfce4".

and i can successfully using palimpsest from gnome-disks-utility to mount or umount, but nautilus(gvfs) can not.

Environment: xfce4.6, nautilus 2.29, gvfs 1.54, udisks 1.0.0-1.20100223

any ideas?

Last edited by jarryson (2010-03-05 08:27:16)

Offline

#2 2010-03-04 16:52:10

jarryson
Member
Registered: 2007-02-18
Posts: 298

Re: [SOLVED]GVFS can not mount removable media, but devicekit(udisks) can

i am really confused, when i using gdm to login, gvfs can mount now.

Offline

#3 2010-03-04 18:46:08

Sharpeee
Member
From: Denmark
Registered: 2008-10-19
Posts: 59

Re: [SOLVED]GVFS can not mount removable media, but devicekit(udisks) can

I have the same problem! I'm using Gnome 2.28 and Slim 1.3.

"devkit-disks --mount" works perfectly but Nautilus can't mount any external disks. From this (http://bbs.archlinux.org/viewtopic.php?id=86832) thread I have found that changing "<allow_any>no</allow_any>" to "<allow_any>yes</allow_any>" in "/usr/share/polkit-1/actions/org.freedesktop.devicekit.disks.policy" works, but that is really not a very good solution.
I have also found that launching Nautilus with "dbus-launch nautilus" works.
Last but not least I have found that running this "/usr /lib/gvfs-gdu-volume --monitor" also works.

Does anybody know of a permanent solution?

Offline

#4 2010-03-04 20:59:38

jarryson
Member
Registered: 2007-02-18
Posts: 298

Re: [SOLVED]GVFS can not mount removable media, but devicekit(udisks) can

finally, i figure out what the matter with that.

start session must with the following command:

ck-launch-session dbus-launch --sh-syntax --exit-with-session gnome-session

Dont try to ignore dbus-launch, even there is /etc/X11/xinit/xinitrc.d/30-dbus in your system. you can delete /etc/X11/xinit/xinitrc.d/30-dbus but have to keep this.

i think maybe gvfs have to talk to udisk by dbus, but if not start session by that line, the started dbus is not belone  to this session and will be denied

Offline

Board footer

Powered by FluxBB