You are not logged in.

#1 2010-03-11 18:39:41

karabaja4
Member
From: Croatia
Registered: 2008-09-14
Posts: 1,001
Website

GVFS - problem with pcmanfm-git

I have a problem with GVFS daemon and new pcmanfm 0.9.2 alpha which uses it by default. I'm using no DE and it's kinda pain to configure GVFS properly.

First, it wouldn't run at all (pcmanfm2 didn't show the drive at all) so I had to add this:

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

to my .xinitrc, I'm guessing GVFS has something to do with dbus.

Anyway, that made it start:

 4273 ?        S      0:00 /usr/lib/gvfs/gvfsd
 4282 ?        Ssl    0:00 /usr/lib/gvfs//gvfs-fuse-daemon /home/igor/.gvfs
 ...
 4302 ?        S      0:00 /usr/lib/gvfs/gvfsd-trash --spawner :1.1 /org/gtk/gvfs/exec_spaw/0
 4304 ?        S      0:00 /usr/lib/gvfs/gvfs-gdu-volume-monitor
 4306 ?        S      0:00 /usr/lib/DeviceKit/devkit-disks-daemon
 4307 ?        S      0:00 devkit-disks-daemon: polling /dev/sr0 
 4310 ?        S      0:00 /usr/lib/gvfs/gvfs-gphoto2-volume-monitor
 4314 ?        S      0:00 /usr/lib/polkit-1/polkitd
 ...

and now the drive is there, but I can't mount it. Here's the problem:

authorized_thumb.png

I'm guessing this is a permission error?

I tried:
* chmod-ing /home/user/.gvfs to 0777 (by default it was 0500 if I remember correcly) -> no effect
* editing /etc/udev/rules.d/99-fuse.rules to mode 0775, I thought it had to do something with the fuse module. -> no effect
* running pcmanfm2 as root loses the drive completely.

Any ideas on this, maybe someone has more experience with gvfs?

.

Last edited by karabaja4 (2010-03-11 18:43:48)

Offline

#2 2010-03-13 04:50:22

PCMan
Member
Registered: 2008-05-21
Posts: 17

Re: GVFS - problem with pcmanfm-git

You need launch policy-kit-gnome to do the authentication for you.
In modern Linux it's not possible to work completely without policy-kit.
It's a pain, but it seems to be inevitable.
I hate gnome component, too. However, currently there is no other alternatives, unless you want to use the one provided by kde.

Offline

#3 2010-03-13 06:00:44

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: GVFS - problem with pcmanfm-git

PCMan wrote:

You need launch policy-kit-gnome to do the authentication for you.
In modern Linux it's not possible to work completely without policy-kit.
It's a pain, but it seems to be inevitable.

polkit and devkit are the present and future of desktop Linux, no question there. HAL made automatic configuration much more simple and with the option to take control when one understands more, it has been fairly benign. polkit and devkit, with proactive user involvement, can be an ever better thing if user control is built into the architecture.

PCMan wrote:

I hate gnome component, too. However, currently there is no other alternatives, unless you want to use the one provided by kde.

Maybe moving forking GVFS up the to-do list is in order? Or better yet, pushing to get the various FUSE libraries to the point of reliablility?

Offline

#4 2010-03-13 12:11:30

karabaja4
Member
From: Croatia
Registered: 2008-09-14
Posts: 1,001
Website

Re: GVFS - problem with pcmanfm-git

PCMan wrote:

You need launch policy-kit-gnome to do the authentication for you.
In modern Linux it's not possible to work completely without policy-kit.
It's a pain, but it seems to be inevitable.
I hate gnome component, too. However, currently there is no other alternatives, unless you want to use the one provided by kde.

I tried running

/usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1

but it didn't help sad

Any other suggestions?

My ps ax:

 3907 ?        S<     0:00 /sbin/udevd --daemon
 3915 ?        S<     0:00 /sbin/udevd --daemon
 3924 ?        S      0:00 [flush-8:0]
 3930 ?        S      0:00 [jbd2/sda4-8]
 3931 ?        S      0:00 [ext4-dio-unwrit]
 4042 ?        S      0:00 supervising syslog-ng
 4043 ?        Ss     0:00 /usr/sbin/syslog-ng
 4063 ?        Ss     0:00 /usr/bin/dbus-daemon --system
 4066 ?        Ss     0:00 /usr/sbin/hald
 4067 ?        S      0:00 hald-runner
 4095 ?        S      0:00 hald-addon-input: Listening on /dev/input/event5 /dev/input/event4 /dev/input/event2 /dev/input/event3 /dev/input/event1
 4097 ?        S      0:00 /usr/lib/hal/hald-addon-rfkill-killswitch
 4100 ?        S      0:00 /usr/lib/hal/hald-addon-generic-backlight
 4111 ?        S      0:00 hald-addon-storage: polling /dev/sr0 (every 2 sec)
 4113 ?        S      0:00 /usr/lib/hal/hald-addon-cpufreq
 4114 ?        S      0:00 hald-addon-acpi: listening on acpi kernel interface /proc/acpi/event
 4124 tty1     Ss     0:00 /bin/login --     
 4125 tty2     Ss+    0:00 /sbin/agetty -8 38400 tty2 linux
 4126 tty3     Ss+    0:00 /sbin/agetty -8 38400 tty3 linux
 4127 tty4     Ss+    0:00 /sbin/agetty -8 38400 tty4 linux
 4128 tty5     Ss+    0:00 /sbin/agetty -8 38400 tty5 linux
 4129 tty6     Ss+    0:00 /sbin/agetty -8 38400 tty6 linux
 4131 tty1     S      0:00 -bash
 4194 ?        Ssl    0:00 mpd /home/igor/.mpd/mpd.conf
 4202 ?        Sl     0:00 /usr/sbin/console-kit-daemon --no-daemon
 4276 ?        S      0:00 /usr/lib/DeviceKit/devkit-disks-daemon
 4277 ?        S      0:00 devkit-disks-daemon: polling /dev/sr0 
 4284 ?        S      0:00 /usr/lib/polkit-1/polkitd
 4343 ?        Ss     0:00 dhcpcd -t 0 wlan0
 4500 tty1     S+     0:00 /bin/sh /usr/bin/startx
 4517 tty1     S+     0:00 xinit /home/igor/.xinitrc -- /etc/X11/xinit/xserverrc :0 -auth /tmp/serverauth.UidIKf4Xfu
 4518 tty8     S<s+   0:04 /usr/bin/X -nolisten tcp
 4523 tty1     S      0:00 ck-launch-session openbox-session
 4528 tty1     S      0:00 dbus-launch --sh-syntax --exit-with-session
 4529 ?        Ss     0:00 /usr/bin/dbus-daemon --fork --print-pid 5 --print-address 7 --session
 4538 tty1     S      0:00 /usr/bin/openbox
 4541 tty1     S      0:00 xcompmgr -cC -t-3 -l-5 -r5
 4545 tty1     S      0:00 python /usr/bin/batterymon
 4546 tty1     S      0:00 gvolwheel
 4547 tty1     S      0:00 trayfreq
 4549 tty1     S      0:00 conky -c .conkyrc3
 4550 tty1     S      0:00 conky -c .conkyrc2
 4551 tty1     Sl     0:00 conky -c .conkyrc
 4555 tty1     S      0:00 tint2 -c .config/tint2/conky
 4556 tty1     S      0:00 tint2
 4557 tty1     S      0:00 /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1
 4559 ?        S      0:00 /usr/lib/gvfs/gvfsd
 4565 ?        Ssl    0:00 /usr/lib/gvfs//gvfs-fuse-daemon /home/igor/.gvfs
 4577 tty1     Sl     0:01 /usr/lib/chromium/chromium
 4578 tty1     S      0:00 /usr/lib/chromium/chromium
 4580 tty1     S      0:00 /usr/lib/chromium/chromium --type=zygote
 4599 tty1     Sl     0:00 /usr/lib/chromium/chromium --type=renderer --lang=en-US
 4618 tty1     S      0:00 urxvt
 4619 pts/2    Ss     0:00 bash
 4630 ?        S      0:00 /usr/lib/gvfs/gvfsd-trash --spawner :1.1 /org/gtk/gvfs/exec_spaw/0
 4632 ?        S      0:00 /usr/lib/gvfs/gvfs-gdu-volume-monitor
 4634 ?        S      0:00 /usr/lib/gvfs/gvfs-gphoto2-volume-monitor
 4651 pts/2    R+     0:00 ps ax

My .xinitrc:

#!/bin/sh

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

exec ck-launch-session openbox-session

Offline

#5 2010-04-03 16:20:46

grogers3.14
Member
Registered: 2010-02-15
Posts: 12

Re: GVFS - problem with pcmanfm-git

These packages might be of interest to you:

gvfs-lite http://aur.archlinux.org/packages.php?ID=36042
lxpolkit-git http://aur.archlinux.org/packages.php?ID=36063
gnome-disk-utility-git http://aur.archlinux.org/packages.php?ID=33680

The first one is gvfs without any depencies, lxpolkit is used to get permissions using policykit.
gnome-disk-utility is used to (auto-)mount drives. You can remove the gnome-keyring dependency in the PKGBUILD to make it use lxpolkit instead.

This is the setup I am using, and it works great except for the annoying dbus thing.

Offline

#6 2010-05-27 12:01:22

Japanlinux
Member
Registered: 2010-05-18
Posts: 173

Re: GVFS - problem with pcmanfm-git

So, if I wanted to install a working version of pcmanfm-git, I would need the git and the lib it installs with it. Then I need to install gvfs-lite, lxpolkit-git and gnome-disk-utility-git. If I edit that pkgbuild to use the lxpolkit (which will be a learning experience for me tongue), then I'm all set to go? I ask this because I tried the git before and I just couldn't get it to mount my usb drives, and ended up having to give up and go to thunar. Thanks for any advice.

EDIT: Wow, I just found another version of lxpolkit when I was about to install it. This one is gnome-disk-utility-lxpolkit-git, which already does the change to the pkgbuild (I would guess, don't know what else would be different).

Though, it doesn't say when the last time it was updated (only that it was up up at the end of april) while the non-git says updated in may. So, i guess I'll use the non-git one unless anyone knows of a reason to use the git.

EDIT2: Sigh... it ends up like always.... Can't get this package manager to work with my usb for the life of me...

Last edited by Japanlinux (2010-05-27 12:29:03)

Offline

#7 2010-05-27 14:53:29

grogers3.14
Member
Registered: 2010-02-15
Posts: 12

Re: GVFS - problem with pcmanfm-git

To use pcmanfm-git with lxpolkit instead of polkit-gnome, install pcmanfm-git, libfm-git, lxpolkit-git, gnome-disk-utility-lxpolkit and libsoup-gnome-lxpolkit from the AUR. Then install gvfs and it should work.

If you want to use polkit-gnome, install the same packages, except the ones with -lxpolkit at the end.

The only major difference between lxpolkit and polkit-gnome is polkit-gnome has more dependencies, but if you run a gnome desktop anyway then it is better for you.

Last edited by grogers3.14 (2010-05-27 14:54:23)

Offline

#8 2010-05-29 22:03:26

Japanlinux
Member
Registered: 2010-05-18
Posts: 173

Re: GVFS - problem with pcmanfm-git

Okay, I installed all those. However, my drives still don't show up in pcmanfm. It's not even they are there and i'm not authorized, it's that I cannot see them at all. Which is weird. Do I need to add something to my daemons or add something to a conf file somewhere? Btw, i'm on pekwm, so I don't have many gnome dependencies atm.

Offline

#9 2010-05-29 22:47:21

grogers3.14
Member
Registered: 2010-02-15
Posts: 12

Re: GVFS - problem with pcmanfm-git

It is probably because you do not have a dbus session started. You need to run this before pcmanfm2 is run:

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

If you use xinitrc to start your session, simply add this to the start and it should work.

Offline

#10 2010-05-30 01:27:53

Japanlinux
Member
Registered: 2010-05-18
Posts: 173

Re: GVFS - problem with pcmanfm-git

o.O that fixed it. I'm curious to why I've never seen this daemon-mode thing before though....
Thank you very much!

Offline

Board footer

Powered by FluxBB