GDM Openbox session makes GVFS not work

You think you have found a bug? Let us know about it.
Post Reply
GJones
Donor
Posts: 300
Joined: 22. Jul 2011, 23:27

GDM Openbox session makes GVFS not work

Post 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.
User avatar
jayseye
Posts: 233
Joined: 24. Jul 2011, 17:22
Location: Brownsmead, Oregon (Center of the Universe)

Re: GDM Openbox session makes GVFS not work

Post by jayseye »

Salix 14?
GJones
Donor
Posts: 300
Joined: 22. Jul 2011, 23:27

Re: GDM Openbox session makes GVFS not work

Post by GJones »

Yeah, sorry, that would be 14. It works fine in 13.37.
User avatar
gapan
Salix Wizard
Posts: 6361
Joined: 6. Jun 2009, 17:40

Re: GDM Openbox session makes GVFS not work

Post 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?
Image
Image
GJones
Donor
Posts: 300
Joined: 22. Jul 2011, 23:27

Re: GDM Openbox session makes GVFS not work

Post 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
User avatar
thenktor
Salix Wizard
Posts: 2426
Joined: 6. Jun 2009, 14:47
Location: Franconia
Contact:

Re: GDM Openbox session makes GVFS not work

Post 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
Image
burnCDDA (burns audio CDs)
geBIERt (German beer blog)
GJones
Donor
Posts: 300
Joined: 22. Jul 2011, 23:27

Re: GDM Openbox session makes GVFS not work

Post 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.
Post Reply