For the "Not Authorized" error :
With Udisks the file you have to edit instead of "usr/share/polkit-1/actions/org.freedesktop.devicekit.disks.policy" is "usr/share/polkit-1/actions/org.freedesktop.udisks.policy"
You just have to replace <allow_any>no</allow_any> by <allow_any>yes</allow_any> for actions related to mount and unmount filesystem, devices, etc.Then, it will not necessary to launch pcmanfm as "dbus-launch pcmanfm" (but it's necessary to launch dbus in your .xinitrc or autostart )
Works fine for me.
work fine following this. I haven't install consolekit, and not modify any other files.
]]>exec ck-launch-session dbus-launch <window-manager>
exec dbus-launch ck-launch-session <window-manager>
By the way, my WM is i3. I do NOT have any:
- gvfs
- hal
Now, I will try to get the volumes mounted according to their labels, and not to their /dev/ addresses. This means that the boot partition should be shown as 'boot', not as 'sda1'.
Thanks, for me it is [SOLVED].
Fabio
Dear all,
it is still not working on my 64bit Arch, even after trying the suggestion of ewtoombs about the .xinitrc exec line.What I do have:
- libfm-git
- pcmanfm-git
- udisks
- consolekitWhat I do not have:
- hal
- gvfs
- polkit-gnomePlease note that none of the packages above are required for the new pcmanfm version to handle disk mounting properly, as stated by the author:
http://blog.lxde.org/?author=5
I followed your link and you're right. The author has implemented the features that gvfs was formerly needed for, but this version is still in git and hasn't been officially released yet, it seems. gvfs is still needed with the version currently on arch. Get it for now until the author's new version has been officially released is what I recommend. Then when that happens, -Rs that mofo. By the way, mine requires hal, but does not require polkit-gnome.
When you have gvfs installed, try the two different exec lines I mentioned in my last post in the .xinitrc and let me know if there's a difference. I'm quite curious to see whether this is reproducible on somebody else's computer.
]]>sudo pcmanfm
what could that be?
]]>What I do have:
- libfm-git
- pcmanfm-git
- udisks
- consolekit
What I do not have:
- hal
- gvfs
- polkit-gnome
Please note that none of the packages above are required for the new pcmanfm version to handle disk mounting properly, as stated by the author:
http://blog.lxde.org/?author=5
For the "Not Authorized" error :
With Udisks the file you have to edit instead of "usr/share/polkit-1/actions/org.freedesktop.devicekit.disks.policy" is "usr/share/polkit-1/actions/org.freedesktop.udisks.policy"
You just have to replace <allow_any>no</allow_any> by <allow_any>yes</allow_any> for actions related to mount and unmount filesystem, devices, etc.Then, it will not necessary to launch pcmanfm as "dbus-launch pcmanfm" (but it's necessary to launch dbus in your .xinitrc or autostart )
Works fine for me.
I found it unnecessary to edit those files. You really shouldn't edit them anyway because the changes will be overwritten on the next update of udisks. Here's what I did find necessary. In my .xinitrc, this didn't work:
exec ssh-agent dbus-launch ck-launch-session lxsession
I saw my USB drive but I couldn't mount it, receiving a "Not Authorized" error from pcmanfm. This did work though:
exec ssh-agent ck-launch-session dbus-launch lxsession
It seems that for some bizarre intangible reason, on my computer, the console kit daemon must be running BEFORE the dbus daemon is launched in order for PolicyKit's policies to work right. I actually thought it'd be the other way around. I'd like to see somebody else try these two different setups and see if they can reproduce what I've seen.
And by the way, kgas: dbus-launch was not at all meant to be started once for every single application. It was meant to be started once in the .xinitrc like how I have just written or like this:
eval `dbus-launch --sh-syntax --exit-with-session`
But of course that doesn't work because dbus-daemon must be started after the console kit daemon.
Just found another way for the openbox setup. launch it with exec ck-launch-session dbus-launch openbox-session works fine without any tweaks.
]]>I have hal as daemon,etc
it s very weird...
Make sure you have gvfs, udisks and polkit-gnome installed, and hal which start in daemon during the boot.
Add the code to launch dbus in your .xinitrc or in the autostart script your WM uses (I prefer), and launch Policykit authentication agent in your autostart script :
# Dbus
if which dbus-launch >/dev/null 2>&1 && test -z "$DBUS_SESSION_BUS_ADDRESS"; then
eval `dbus-launch --sh-syntax --exit-with-session`
fi
# Policykit
/usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1
Then, edit "usr/share/polkit-1/actions/org.freedesktop.udisks.policy" as I said above, reboot, and it worked fine for me.
Now, I can launch pcmanfm normally (without dbus-launch) and volumes appear in the left panel of pcmanfm and can be mounted (no error "Not Authorized").
I hope it can help you
]]>luckily, I hurriedly retrieved the prior version for both x86 and 64 and will make them available should anyone want to downgrade and cant find version 5.2
Debian Squeeze tried to upgrade to this version of pcmanfm couple weeks ago and same issues plus it wouldn't let me open it as root if I was user?!
so, is there any other file manager just like pcmanfm version 5.2?
no, they all have issues and most wont show drives, etc in left panel
I dont want a trash can function either, its pointless for me
is there a way to hack the trash can function out?
thanks
I have an x86_64 arch, and udisks --monitor shows the removable device being plugged in. However, no sign of the volume in the left panel of pcmanfm.
I have launched dbus in .xinitrc as suggested, and the problem is present both if I start dbus-launch together with pcmanfm and if I start pcmanfm alone.
]]>