You are not logged in.

#1 2010-07-07 20:42:25

spiridow
Member
Registered: 2009-08-08
Posts: 40

[SOLVED] pcmanfm 0.9.7

After upgrading to pcmanfm 0.9.7, my devices do not appear anymore in the left bar.

I saw that someone opened a bug already, saying that I needed to install gvfs and launch as dbus-launch pcmanfm but it doesn't work. Any ideas?

Last edited by spiridow (2010-07-08 10:04:32)

Offline

#2 2010-07-07 20:44:19

Inxsible
Forum Fellow
From: Chicago
Registered: 2008-06-09
Posts: 9,130

Re: [SOLVED] pcmanfm 0.9.7

spiridow wrote:

After upgrading to pcmanfm 0.9.7, my devices do not appear anymore in the left bar.

I saw that someone opened a bug already, saying that I needed to install gvfs and launch as dbus-launch pcmanfm but it doesn't work. Any ideas?

That's more because of hal than due to pcmanfm.

startup hal in your daemons array or start it just before you use pcmanfm and you should see the devices in the left bar.

Last edited by Inxsible (2010-07-07 20:44:27)


Forum Rules

There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !

Offline

#3 2010-07-07 20:46:08

spiridow
Member
Registered: 2009-08-08
Posts: 40

Re: [SOLVED] pcmanfm 0.9.7

That's more because of hal than due to pcmanfm.

startup hal in your daemons array or start it just before you use pcmanfm and you should see the devices in the left bar.

hal is already running

Offline

#4 2010-07-08 02:48:22

anonymous_user
Member
Registered: 2009-08-28
Posts: 3,058

Re: [SOLVED] pcmanfm 0.9.7

How are your devices mounted? What happens if you run dbus-launch pcmanfm and afterwards unmount/remount the device?

Offline

#5 2010-07-08 03:10:17

Inxsible
Forum Fellow
From: Chicago
Registered: 2008-06-09
Posts: 9,130

Re: [SOLVED] pcmanfm 0.9.7

See this thread for the same issue. Don't think the solution has been found yet though.

http://bbs.archlinux.org/viewtopic.php?id=98529


Forum Rules

There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !

Offline

#6 2010-07-08 07:01:09

xenom
Member
Registered: 2009-03-19
Posts: 7

Re: [SOLVED] pcmanfm 0.9.7

Is GVFS running?
Did you start dbus-launch ? See http://wiki.archlinux.org/index.php/Pcm … d_PCManFM2

There is also a topic in the pcmanfm forum, not exactly the same problem, but it can help : http://forum.lxde.org/viewtopic.php?f=22&t=1422&start=0

I also have upgraded pcmanfm to 0.9, and I just have to correct the mount permissions.

Offline

#7 2010-07-08 09:29:23

spiridow
Member
Registered: 2009-08-08
Posts: 40

Re: [SOLVED] pcmanfm 0.9.7

I added this to my ~/.xinitrc:

if which dbus-launch >/dev/null && test -z "$DBUS_SESSION_BUS_ADDRESS"; then
       eval "$(dbus-launch --sh-syntax --exit-with-session)"
fi

And now the device appears in the left bar when plugged in, but it won't mount.

I get the following error: "Not Authorized"

In the wiki it says that I have to edit /usr/share/polkit-1/actions/org.freedesktop.devicekit.disks.policy, but there is no such file on my system.

EDIT: forgot to launch as dbus-launch pcmanfm. Works fine now, no need to edit the above mentioned file, though.

Last edited by spiridow (2010-07-08 10:04:19)

Offline

#8 2010-07-08 11:25:31

parintachin
Member
Registered: 2009-05-25
Posts: 72

Re: [SOLVED] pcmanfm 0.9.7

if you want pcmanfm to manage the desktop plus wallpaper you have to change the line @pcmanfm -d to @pcmanfm --desktop in /etc/xdg/lxsession/LXDE/autostart

Last edited by parintachin (2010-07-08 12:19:18)

Offline

#9 2010-07-08 13:01:02

Eksel
Member
From: France
Registered: 2010-07-08
Posts: 2

Re: [SOLVED] pcmanfm 0.9.7

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.

Last edited by Eksel (2010-07-08 13:02:21)

Offline

#10 2010-07-08 14:21:05

72linus
Member
From: gordonsville,va
Registered: 2009-03-14
Posts: 144
Website

Re: [SOLVED] pcmanfm 0.9.7

Hey guys
the fixes above work in my i686 arch setup
But, the fixes aren't working in my x86_64 arch setup on same PC
a amd athlon64 3300+

I cant get the left view pane to show my drives, etc!?
please help
thanks

Offline

#11 2010-07-08 15:10:05

iosonofabio
Member
From: Italy
Registered: 2008-10-09
Posts: 101

Re: [SOLVED] pcmanfm 0.9.7

I second 72linus.

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.

Offline

#12 2010-07-08 15:48:10

72linus
Member
From: gordonsville,va
Registered: 2009-03-14
Posts: 144
Website

Re: [SOLVED] pcmanfm 0.9.7

I also noticed that there's now a trash can function and it's leaving .Trash folders on my usb, drives, etc

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

Offline

#13 2010-07-08 15:50:17

Lowra
Member
Registered: 2009-09-21
Posts: 192

Re: [SOLVED] pcmanfm 0.9.7

@72linus & @iosonofabio
In my case, I upgraded pcmanfm, installed gvfs, tried to start pcmanfm with `pcmanfm` and `dbus-launch pcmanfm` and it did not worked.
After a reboot, it worked with `dbus-launch pcmanfm` without adding anything in my .xinitrc but I still have hal in my daemon array (for the networkmanager applet) who starts dbus automatically during the boot process.
I hope my post will help you, keep me informed please wink

Offline

#14 2010-07-08 16:34:34

spiridow
Member
Registered: 2009-08-08
Posts: 40

Re: [SOLVED] pcmanfm 0.9.7

If you don't want the trash bin, you can disable it from Edit > Preferences > "General" tab, untick the corresponding box.

Last edited by spiridow (2010-07-08 16:34:50)

Offline

#15 2010-07-08 17:50:39

Eksel
Member
From: France
Registered: 2010-07-08
Posts: 2

Re: [SOLVED] pcmanfm 0.9.7

I also have an x86_64 arch, and it works fine.

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 smile

Offline

#16 2010-07-08 18:34:07

72linus
Member
From: gordonsville,va
Registered: 2009-03-14
Posts: 144
Website

Re: [SOLVED] pcmanfm 0.9.7

I did all that above and zilch
it s blank on left panel except for root folder, etc

I have hal as daemon,etc
it s very weird...

Offline

#17 2010-07-09 16:45:41

kgas
Member
From: Qatar
Registered: 2008-11-08
Posts: 718

Re: [SOLVED] pcmanfm 0.9.7

the problem of using dbus-launch is at one stage there are more than 30 instant of dbus-launch. The better option is  as Eksel mentioned. 72linus it is working fine with x86_64 with necessary tweaks.

Just found another way for the openbox setup. launch it with exec ck-launch-session dbus-launch openbox-session works fine without any tweaks.

Last edited by kgas (2010-07-09 17:11:36)

Offline

#18 2010-07-13 00:27:31

ewtoombs
Member
Registered: 2009-07-23
Posts: 28

Re: [SOLVED] pcmanfm 0.9.7

Eksel wrote:

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.

Last edited by ewtoombs (2010-07-17 06:17:15)

Offline

#19 2010-07-14 09:25:49

iosonofabio
Member
From: Italy
Registered: 2008-10-09
Posts: 101

Re: [SOLVED] pcmanfm 0.9.7

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
- 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

Offline

#20 2010-07-14 12:33:35

72linus
Member
From: gordonsville,va
Registered: 2009-03-14
Posts: 144
Website

Re: [SOLVED] pcmanfm 0.9.7

I do have gvfs, hal, and polkit-gnome on my x86_64 and it still doesn't work either
having tried sevral ways...

Offline

#21 2010-07-15 19:29:18

72linus
Member
From: gordonsville,va
Registered: 2009-03-14
Posts: 144
Website

Re: [SOLVED] pcmanfm 0.9.7

I also noticed in my i686 install using new pcmanfm if I try to open pcmanfm
as root while user it says error, permission denied

sudo pcmanfm

what could that be?

Offline

#22 2010-07-17 06:09:29

ewtoombs
Member
Registered: 2009-07-23
Posts: 28

Re: [SOLVED] pcmanfm 0.9.7

iosonofabio wrote:

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
- 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

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.

Offline

#23 2010-07-17 09:06:59

iosonofabio
Member
From: Italy
Registered: 2008-10-09
Posts: 101

Re: [SOLVED] pcmanfm 0.9.7

The new git version of libfm is out (20100717-1). Now everything works, and my .xinitrc exec line can be one of the following (both work):

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

Last edited by iosonofabio (2010-07-17 09:16:33)

Offline

#24 2011-08-18 17:35:52

lijunle
Member
Registered: 2011-08-06
Posts: 7

Re: [SOLVED] pcmanfm 0.9.7

Eksel wrote:

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.

Offline

#25 2011-08-18 18:28:31

fsckd
Forum Fellow
Registered: 2009-06-15
Posts: 4,173

Re: [SOLVED] pcmanfm 0.9.7

Welcome to the forums lijunle. We have a no necro-bumping rule: https://wiki.archlinux.org/index.php/Fo … Bumping.27
Closing.


aur S & M :: forum rules :: Community Ethos
Resources for Women, POC, LGBT*, and allies

Offline

Board footer

Powered by FluxBB