[Bug 531667] New: allow xdm to run SLIM login Manager
http://bugzilla.novell.com/show_bug.cgi?id=531667 Summary: allow xdm to run SLIM login Manager Classification: openSUSE Product: openSUSE 11.2 Version: Factory Platform: Other OS/Version: Other Status: NEW Severity: Enhancement Priority: P5 - None Component: X.Org AssignedTo: bnc-team-xorg-bugs@forge.provo.novell.com ReportedBy: andrea@opensuse.org QAContact: xorg-maintainer-bugs@forge.provo.novell.com Found By: --- Created an attachment (id=313191) --> (http://bugzilla.novell.com/attachment.cgi?id=313191) slim patch will be great if /etc/init.d/xdm will be able to run also different login manager as slim. working patch attached -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=531667 User sndirsch@novell.com added comment http://bugzilla.novell.com/show_bug.cgi?id=531667#c1 Stefan Dirsch <sndirsch@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO CC| |sndirsch@novell.com Info Provider| |andrea@opensuse.org --- Comment #1 from Stefan Dirsch <sndirsch@novell.com> 2009-08-17 06:02:47 MDT --- 1. I've never heard anything about a slim DM. Do we ship it at all? I don't think so. 2. You're changing a lot of things unrelated to slim in xdm init script. Why? 3. You don't use startproc/kill for starting/terminating slim DM although any other DM does. Why? -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=531667 User andrea@opensuse.org added comment http://bugzilla.novell.com/show_bug.cgi?id=531667#c2 andrea florio <andrea@opensuse.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |NEW Info Provider|andrea@opensuse.org | --- Comment #2 from andrea florio <andrea@opensuse.org> 2009-08-17 06:31:24 MDT --- 1) slim is a lightweight Login Manager: http://slim.berlios.de/ actually this Login Manager is available in Contrib, and will be the default login manager for LXDE openSUSE project, opefully also used with xfce because the xdm is very ugly to see, this one instead provide a very good looking appereance and custom themes this one is the theme we are curretly ship with slim package: http://en.opensuse.org/Image:OS11.1-slim-SUSE.png 2) WOW! i just check better the diff.. i did the diff with the one available into openSUSE:Factary/xorg-x11 --> xdm.tar.bz2 the lines really needed are: line 87: + SLIM_BIN=/usr/bin/slim lines 109 - 110 + slim|SLIM) DISPLAYMANAGER=$SLIM_BIN + ;; lines 161 - 162 - 163 + if [ "$DISPLAYMANAGER" = "$SLIM_BIN" ]; then + $SLIM_BIN -d + fi lines 222 - 223 - 224 + if [ "$DISPLAYMANAGER" = "$SLIM_BIN" ]; then + killproc $DISPLAYMANAGER + fi nothing else 3) to start slim is enought "slim -d" and to kill it just "killproc slim" this is an "home made" script, of course people with a better shell knowledge can be able to fix it. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=531667 Stefan Dirsch <sndirsch@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P5 - None |P4 - Low AssignedTo|bnc-team-xorg-bugs@forge.pr |werner@novell.com |ovo.novell.com | -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=531667 User werner@novell.com added comment http://bugzilla.novell.com/show_bug.cgi?id=531667#c3 Dr. Werner Fink <werner@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO Info Provider| |andrea@opensuse.org --- Comment #3 from Dr. Werner Fink <werner@novell.com> 2009-08-17 06:48:11 MDT --- The patch is buggy as the diff is doen for two different version of the boot scripts. Next seems to be that slim does not run as daemon by default nor seems slim to know about standard xdm options. If so you should use in line 109 - 110 slim|SLIM) DISPLAYMANAGER=$SLIM_BIN XDMOPTIONS=-d KDM_PIDFILE=/var/run/slim.pid ;; and skip the change in line 161 - 162 - 163 and also line 222 - 223 - 224. Hopefully slim knows about a pid file in case of using option -d. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=531667 User werner@novell.com added comment http://bugzilla.novell.com/show_bug.cgi?id=531667#c4 --- Comment #4 from Dr. Werner Fink <werner@novell.com> 2009-08-18 09:30:56 MDT --- Ping! Andrea? Are there any news? -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=531667 User andrea@opensuse.org added comment http://bugzilla.novell.com/show_bug.cgi?id=531667#c5 --- Comment #5 from andrea florio <andrea@opensuse.org> 2009-08-18 11:36:36 MDT --- sorry, lots of troubles at work. that's the situation, with your suggestions: it start, but it won't be killed, slim looks don't know pid file (only lock and auth ones) killproc -p $PIDFILE -TERM $DISPLAYMANAGER loks not working, using just killproc $DISPLAYMANAGER it instead works (didn't try yet if : "killproc -TERM $DISPLAYMANAGER" will works) any way, based on you suggestions i think the lines that should be added are: SLIM_PIDFILE="/var/run/slim.pid" SLIM_BIN=/usr/bin/slim slim|SLIM) DISPLAYMANAGER=$SLIM_BIN XDMOPTIONS=-d PIDFILE=$SLIM_PIDFILE even if we know pidfile is un-useful and respective lines are not needed -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=531667 User sndirsch@novell.com added comment http://bugzilla.novell.com/show_bug.cgi?id=531667#c6 --- Comment #6 from Stefan Dirsch <sndirsch@novell.com> 2009-08-18 16:12:39 MDT --- slim does not use a pidfile? I suggest to fix this first in slim. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=531667 User andrea@opensuse.org added comment http://bugzilla.novell.com/show_bug.cgi?id=531667#c7 andrea florio <andrea@opensuse.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |NEW Info Provider|andrea@opensuse.org | --- Comment #7 from andrea florio <andrea@opensuse.org> 2009-08-18 16:37:50 MDT --- i got it! i investigated deeper, and i found that it has just a different name. Debian use as pid, the lock file /var/run/slim.lock and infact adding SLIM_PIDFILE="/var/run/slim.lock" SLIM_BIN=/usr/bin/slim slim|SLIM) DISPLAYMANAGER=$SLIM_BIN XDMOPTIONS=-d PIDFILE=$SLIM_PIDFILE everything actually works fine (including killing the proc) -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=531667 User werner@novell.com added comment http://bugzilla.novell.com/show_bug.cgi?id=531667#c8 --- Comment #8 from Dr. Werner Fink <werner@novell.com> 2009-08-19 03:26:39 MDT --- Created an attachment (id=313886) --> (http://bugzilla.novell.com/attachment.cgi?id=313886) /etc/init.d/xdm Try this one, it should solve your problem. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=531667 Dr. Werner Fink <werner@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO Info Provider| |andrea@opensuse.org -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=531667 User werner@novell.com added comment http://bugzilla.novell.com/show_bug.cgi?id=531667#c9 Dr. Werner Fink <werner@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #313886|0 |1 is obsolete| | --- Comment #9 from Dr. Werner Fink <werner@novell.com> 2009-08-19 03:29:10 MDT --- Created an attachment (id=313887) --> (http://bugzilla.novell.com/attachment.cgi?id=313887) /etc/init.d/xdm OK .. now with /var/run/slim.lock -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=531667 User werner@novell.com added comment http://bugzilla.novell.com/show_bug.cgi?id=531667#c10 Dr. Werner Fink <werner@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |ASSIGNED CC| |werner@novell.com Info Provider|andrea@opensuse.org | AssignedTo|werner@novell.com |sndirsch@novell.com --- Comment #10 from Dr. Werner Fink <werner@novell.com> 2009-08-19 03:31:02 MDT --- Stefan, please would you add the new /etc/init,d/xdm script ... I've not only added slim but also changed some other parts of it. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=531667 User sndirsch@novell.com added comment http://bugzilla.novell.com/show_bug.cgi?id=531667#c11 Stefan Dirsch <sndirsch@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED --- Comment #11 from Stefan Dirsch <sndirsch@novell.com> 2009-08-19 04:30:52 MDT --- Thanks, Werner! Done for X11:XOrg/xorg-x11 and SR'ed now for openSUSE:Factory. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=531667 User andrea@opensuse.org added comment http://bugzilla.novell.com/show_bug.cgi?id=531667#c12 --- Comment #12 from andrea florio <andrea@opensuse.org> 2009-08-19 11:31:27 MDT --- Werner, thanks it works fine. just last thing, IMHO xorg-x11 package should include also that change (tested) into /etc/X11/xinit/xinitrc: # # finally start the window manager # +unset WINDOW_MANAGER STARTUP +if [ "$DISPLAYMANAGER" = "$SLIM_BIN" ]; then +exec ck-launch-session $WINDOWMANAGER +else exec $WINDOWMANAGER +fi to allow slim to correctly start the consolekyt session. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=531667 User sndirsch@novell.com added comment http://bugzilla.novell.com/show_bug.cgi?id=531667#c13 --- Comment #13 from Stefan Dirsch <sndirsch@novell.com> 2009-08-20 10:00:29 MDT --- Could you describe what ck-launch-session exactly does? Why is it required for SLIM, but not for other display managers like kdm(3/4), gdm and xdm? -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=531667 User andrea@opensuse.org added comment http://bugzilla.novell.com/show_bug.cgi?id=531667#c14 --- Comment #14 from andrea florio <andrea@opensuse.org> 2009-08-20 12:13:31 MDT --- ck-launch-session start the consolekit/polcykit rights for launched session. without that comman infact you cannot: halt/reboot/suspend/hybernate the pc as user run network manager applet as user control volutme as user and so on.. the other login managers (i don't know about xdm, i never tryed) just run it automagically. examample of errorring received runngin nm-applet without c-launch-session: ** (nm-applet:2622): WARNING **: <WARN> applet_dbus_manager_start_service(): Could not acquire the NetworkManagerUserSettings service. Message: 'Connection ":1.24" is not allowed to own the service "org.freedesktop.NetworkManagerUserSettings" due to security policies in the configuration file' -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=531667 User andrea@opensuse.org added comment http://bugzilla.novell.com/show_bug.cgi?id=531667#c15 --- Comment #15 from andrea florio <andrea@opensuse.org> 2009-09-03 03:18:00 MDT --- btw, i just rembered that also /etc/sysconfig/displaymanager should complain about slim. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=531667 User sndirsch@novell.com added comment http://bugzilla.novell.com/show_bug.cgi?id=531667#c16 --- Comment #16 from Stefan Dirsch <sndirsch@novell.com> 2009-09-03 03:22:02 MDT --- Hmm, how can a text file complain about anything? -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=531667 User andrea@opensuse.org added comment http://bugzilla.novell.com/show_bug.cgi?id=531667#c17 --- Comment #17 from andrea florio <andrea@opensuse.org> 2009-09-03 03:28:18 MDT --- just here: from : ## Path: Desktop/Display manager ## Description: settings to generate a proper displaymanager config ## Type: string(kdm,kdm3,kdm4,xdm,gdm,wdm,console) ## Default: "" # # Here you can set the default Display manager (kdm/xdm/gdm/wdm/console). # all changes in this file require a restart of the displaymanager # DISPLAYMANAGER="" to ## Path: Desktop/Display manager ## Description: settings to generate a proper displaymanager config ## Type: string(kdm,kdm3,kdm4,xdm,gdm,wdm,slim,console) ## Default: "" # # Here you can set the default Display manager (kdm/xdm/gdm/wdm/slim/console). # all changes in this file require a restart of the displaymanager # DISPLAYMANAGER="" nothing else -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=531667 http://bugzilla.novell.com/show_bug.cgi?id=531667#c18 --- Comment #18 from Bernhard Wiedemann <bwiedemann@suse.com> --- This is an autogenerated message for OBS integration: This bug (531667) was mentioned in https://build.opensuse.org/request/show/20550 Factory:Contrib / slim -- You are receiving this mail because: You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com