Page 1 of 1

GDM Openbox session makes GVFS not work

Posted: 2. Dec 2012, 04:28
by GJones
Not sure why; I've got an active Consolekit session, and a dbus session running under my username, so everything should work right? But Thunar still doesn't show external volumes, and doesn't let me access the trash bin.

However, if I put this in my .Xclients script

Code: Select all

blah blah blah commands &
exec dbus-launch SOME_WINDOW_MANAGER
Thunar works just fine. So it looks to me like the GDM session for Openbox is not launching dbus properly.

Re: GDM Openbox session makes GVFS not work

Posted: 2. Dec 2012, 04:45
by jayseye
Salix 14?

Re: GDM Openbox session makes GVFS not work

Posted: 2. Dec 2012, 14:05
by GJones
Yeah, sorry, that would be 14. It works fine in 13.37.

Re: GDM Openbox session makes GVFS not work

Posted: 2. Dec 2012, 21:48
by gapan
If you have both 13.37 and 14.0 in your PCs, are there any differences in the xinitrc.openbox files in openbox packages from both?

Re: GDM Openbox session makes GVFS not work

Posted: 2. Dec 2012, 23:12
by GJones
Ah, thanks for the pointer! I don't have a 13.37 install right now, but the xinitrc.openbox file does not invoke dbus, and contains at least one other error. This:

Code: Select all

# start the openbox session, if possible attached to consolekit
if [ -e /usr/bin/ck-launch-session ]; then
	exec /usr/bin/ck-launch-session /usr/bin/openbox-session
else
	exec /usr/bin/ck-launch-session
fi
should probably be

Code: Select all

if [ -e /usr/bin/ck-launch-session  && -e /usr/bin/dbus-launch ]; then
	exec /usr/bin/ck-launch-session /usr/bin/dbus-launch /usr/bin/openbox-session
else
	exec /usr/bin/openbox-session
fi

Re: GDM Openbox session makes GVFS not work

Posted: 3. Dec 2012, 08:49
by thenktor
GJones wrote:

Code: Select all

# start the openbox session, if possible attached to consolekit
if [ -e /usr/bin/ck-launch-session ]; then
	exec /usr/bin/ck-launch-session /usr/bin/openbox-session
else
	exec /usr/bin/ck-launch-session
fi
This has to be "exec /usr/bin/openbox-session" in the else statement!

And I have the following in my .config/openbox/autostart.sh:

Code: Select all

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

Re: GDM Openbox session makes GVFS not work

Posted: 15. Dec 2012, 20:32
by GJones
An update: with Ratpoison and Fluxbox, the 'exec dbus-launch foo' method does not work. Neither does copying over the 'xinitrc.foo' file to ~/.Xclients. Most ungood.

What's really odd about this is that I have an active consolekit session and a dbus session running as my user, and GVFS still doesn't do its job.