Hardcoded /usr/bin in Xsession.d files makes jhbuild sessions to fail

Bug #112106 reported by Luca Ferretti
6
Affects Status Importance Assigned to Milestone
seahorse (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Tried to launch the GNOME 2.19 session installed using jhbuild under /opt/gnome2, many "autostart" services and deamons (dbus-daemon, seahorse-agent, gnome-settings-daemon, gconfd-2, gnome-vfs-daemon...) are started using the binaries installed by Ubuntu package under /usr/bin instead using the binaries under /opt/gnome2/bin.

This is not good for my development/testing purpose, 'cause the session runs mixing settings and code from both GNOME installations, while it should use only settings and code from the one under /opt/gnome2

The only reason I can see for this wrong behavior is the hardcoded /usr/bin path in some files under /etc/X11/Xsession.d directory. For example, in /etc/X11/Xsession.d/60seahorse is:

    # This file is sourced by Xsession(5), not executed.

    SEAHORSE=/usr/bin/seahorse-agent
    if [ -x $SEAHORSE ]; then
            STARTUP="$SEAHORSE --execute $STARTUP"
    fi

Same occurs for 55gnome-session_gnomerc and 75dbus_dbus-launch files in the same directory.

I'll try to remove this hardcode path.

Further info:
  * jhbuild sandbox was installed following info on http://live.gnome.org/JhbuildOnUbuntu
  * it always worked fine on dapper and edgy, I'm experiencing this issue now in feisty

Revision history for this message
Luca Ferretti (elle.uca) wrote :

I removed /usr/bin from 75dbus_dbus-launch and 60seahorse and now the jhbuild session goes fine.

I don't know if this is the real issue, but it's really annoying for GNOME developers using Ubuntu as base distro :-(

Please fix it.

Revision history for this message
Dean Sas (dsas) wrote :

The 75dbus-launch file isn't there on my gusty system so I've placed this bug against seahorse.

Revision history for this message
Luca Ferretti (elle.uca) wrote :

Dean, not 75dbus-launch, but 75dbus_dbus-launch. It's in Gutsy installed by "dbus-x11" package[1]

A note about seahorse: it Ubuntu is using Xsession.d just to launch seahorse agent, maybe could be better use /etc/xdg/autostart approach. This will also allow users to disable its launch using Session capplet.

[1] http://packages.ubuntu.com/cgi-bin/search_contents.pl?word=75dbus_dbus-launch&searchmode=searchfiles&case=insensitive&version=gutsy&arch=i386

Revision history for this message
Luca Ferretti (elle.uca) wrote :

Update: on seahorse svn was just applied a patch that lets you to start seahorse agent using freedesktop.org xdg autostart spec (i.e. using a .desktol file in /etc/xdg/autostart directory). See http://bugzilla.gnome.org/show_bug.cgi?id=511224 for details and features.

This means that in next seahorse releases there is no need to use Xsession.d to launch the agent.

PS changing the subject to make it related to seahorse only.

Revision history for this message
Luca Ferretti (elle.uca) wrote :

Or, better, close this bug as invalid and open a new one only for seahorse in Hardy

Changed in seahorse:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.