After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 554140 - gdm should take care of dbus and ck prefix
gdm should take care of dbus and ck prefix
Status: RESOLVED OBSOLETE
Product: gdm
Classification: Core
Component: general
2.24.x
Other All
: Normal normal
: ---
Assigned To: GDM maintainers
GDM maintainers
Depends on: 596388
Blocks:
 
 
Reported: 2008-09-28 07:52 UTC by Eloi Primaux
Modified: 2013-11-18 14:47 UTC
See Also:
GNOME target: ---
GNOME version: 2.23/2.24


Attachments
Allows GDM to detect libexec directories for GSD and CK, also fixes dbus_datadir. (9.14 KB, patch)
2009-09-27 00:40 UTC, DJ Lucas
none Details | Review

Description Eloi Primaux 2008-09-28 07:52:57 UTC
Steps to reproduce:
if gdm install path is /usr/local, the it considers that dbus & ck are installed in it's path.... wrong:
in my case:
dbus-launch path is /usr/bin
ck libexec dir is /usr/lib/ConsoleKit...

Hal take care of this...


Stack trace:


Other information:
Comment 1 Ray Strode [halfline] 2008-09-29 14:22:51 UTC
So we probably need to have console kit advertise advertise the location of ck-get-x11-display device before we can fix it.

For dbus we can just rely on dbus-launch being in the path.

Note though, it's a little strange because if we run the system dbus-launch then it won't know to look for service files and bus policy in the non-system prefix (not sure if that will be a problem)
Comment 2 Lupine 2008-10-01 00:34:18 UTC
Is there something I can try, as a workaround?  Or, is there any other logs or information that is required to hep troubleshoot this?  I'm having various other problems, and I want to make sure they are not related to this issue before digging any deeper.  Thanks.
Comment 3 Ray Strode [halfline] 2008-10-01 01:36:57 UTC
a workaround that may work (not sure) is creating symlinks from where dbus-launch and ck-get-x11-display-device are to where gdm expects them to be.

Another workaround would be to install those packages into the same prefix as gdm.
Comment 4 Lupine 2008-10-01 11:10:47 UTC
Almost there now.  That finally got GDM to launch, and present a newer looking login box, however it always says "Can not authenticate user" when clicking on my user.  I watched the logfiles while launching GDM, and I no longer see the "Could not run helper: Failed to execute child process "/opt/gnome/lib/gdm/ck-get-x11-display-device" (No such file or directory)" errors, but I'm still not able to login via GDM. 
Comment 5 Ray Strode [halfline] 2008-10-01 13:40:29 UTC
do you have a pam file for gdm in /etc/pam.d/gdm ?
Comment 6 Lupine 2008-10-01 15:19:36 UTC
Yes, I have two:

$> cat /etc/pam.d/gdm
#%PAM-1.0

auth       include      system-auth
account    include      system-auth
password   include      system-auth
session    include      system-auth


$> cat /etc/pam.d/gdm-autologin 
#%PAM-1.0

auth       required    pam_permit.so
Comment 7 Lupine 2008-10-23 23:36:39 UTC
Just updated to Gnome-2.24.1, and although the gdm version didn't change...making the symlinks as mentioned above, did allow be to get logged in correctly.
Comment 8 Dan Nicholson 2008-11-06 16:18:25 UTC
Is it a good idea to be depending on a libexec executable from another package? I would think that if ck-get-x11-display-device and ck-get-x11-server-pid are usable external ABI for CK, then they should be somewhere in $PATH. Alternatively, I was wondering why the functionality of ck-get-x11-display-device and ck-get-x11-server-pid aren't put into a library, say, libck-util?

Jon/Ray, any thoughts on that?
Comment 9 Ray Strode [halfline] 2008-11-06 20:10:12 UTC
i tend to agree with you.

Comment 10 Dan Nicholson 2008-11-07 14:37:52 UTC
About putting the executables in $PATH or making a library?
Comment 11 Ray Strode [halfline] 2008-11-07 14:52:44 UTC
library.  I don't think it's a very big issue either way though.  The number of programs that consume that interface is small, so a minor wart in the architecture isn't a huge deal in my eyes.
Comment 12 Dan Nicholson 2008-11-07 15:26:10 UTC
Well, I would work on some patches to make libck-util, but I wouldn't want to waste my time if they wouldn't be applied.
Comment 13 Ray Strode [halfline] 2008-11-07 15:31:01 UTC
Ah, need mccann to chime in I guess.  I don't maintain consolekit.

Maybe should be discussed on ConsoleKit's bugzilla?
Comment 14 Dan Nicholson 2008-11-07 15:47:32 UTC
OK. Filed fdo bug 18427.

https://bugs.freedesktop.org/show_bug.cgi?id=18427
Comment 15 DJ Lucas 2009-09-27 00:38:58 UTC
Requested, at very least that libexecdir be added to the pc file in next release of ConsoleKit.  Attachment depends on both https://bugs.freedesktop.org/show_bug.cgi?id=18427 (same as above comment by Dan) and https://bugzilla.gnome.org/show_bug.cgi?id=596388 are resolved as proposed.
Comment 16 DJ Lucas 2009-09-27 00:40:14 UTC
Created attachment 144091 [details] [review]
Allows GDM to detect libexec directories for GSD and CK, also fixes dbus_datadir.
Comment 17 Ray Strode [halfline] 2013-11-18 14:47:34 UTC
i believe this is obsolete now.