Re: [Cooker] X problems (and some shell comments)
Anton Graham [EMAIL PROTECTED] writes: Actually, I keep fairly current. And the new system *does* work 100% for runlevel 5. It's when you want to startx from runlevel 3 that it breaks. As an aside, I know that chksession is supposed to decide which wm is first by the number in front. But, it doesn't seem to like me :) Actually the reason is simple, the chksession -F respect the /etc/sysconfig/desktop entry so you may have to change it to whatever you want in this file. Indeed it's not a solution. Pixel/Flepied i remember you have requested such feature, but actually is more consistent to drive everything via /etc/X11/wmsession.d/, so what about in chksession to remove this : Index: chksession === RCS file: /home/cvs/cooker/soft/mandrake_desk/sbin/chksession,v retrieving revision 1.8 diff -u -u -r1.8 chksession --- chksession 2000/07/18 21:31:16 1.8 +++ chksession 2000/08/27 11:47:25 @@ -74,10 +74,6 @@ parse_file ("$dir/$file"); } -sub cat { my ($f) = @_; local *F; open F, $f; join '', F } -my ($e) = cat("/etc/sysconfig/desktop") =~ /(\S+)/; -@lf = sort { $b =~ /$e/i = $a =~ /$e/i } @lf; - if ($kdm) { $session="SessionTypes="; for(@lf) { $session .= /$lf[-1]/ ? "$_,failsafe,default" : "$_," } and add in fndSession : Index: fndSession === RCS file: /home/cvs/cooker/soft/mandrake_desk/sbin/fndSession,v retrieving revision 1.3 diff -u -u -r1.3 fndSession --- fndSession 1999/12/22 02:21:27 1.3 +++ fndSession 2000/08/27 11:46:49 @@ -13,6 +13,8 @@ /usr/share/config/kdmrc fi +[ ! -e /etc/sysconfig/desktop ] echo "`chksession -F`" /etc/syconfig/desktop + if [ -d /etc/X11/gdm/Sessions ];then /usr/sbin/chksession -g fi for sure it's not the best solution, hf team or cooker people WDYT ? -- MandrakeSoft Inc http://www.chmouel.org San-Francisco, CA USA --Chmouel
Re: [Cooker] X problems (and some shell comments)
Submitted 21-Aug-00 by Guillaume Cottenceau: More probably, your prompt is eating the last line which as no trailing \n when you try to print out the script. You're correct. Forcing the echo of a newline afterward shows the correct script. But, I still end up with a grey mesh ahd X cursor with no wm or xterm when I type startx without having ~/.xinitrc. Further testing reveals that it is the "#!/bin/bash -login" in /etc/X11/Xsession that is causing the problem. Changing bash to sh seems to fix it. Ignoring this specific case of it possibly causing problems, I personally feel that most (all?) of the Mandrake supplied shell scripts that are sh/bash based should use sh. Certainly, there are a few things you cannot do when it is invoked as sh, but it is more portable. As a zsh user, I would also like to see zsh repackaged so the the executable in in /bin. Zsh provides an sh mode (if called as such), and having it in /bin could eliminate the need for me to have bash on this system. After all, I only have bash to satisfy the requirements of some Mandrake scripts and because it is the only full shell that provides sh without having /usr mounted. Else, upgrade to latest stuff, I did an install of cooker today, it works. Actually, I keep fairly current. And the new system *does* work 100% for runlevel 5. It's when you want to startx from runlevel 3 that it breaks. As an aside, I know that chksession is supposed to decide which wm is first by the number in front. But, it doesn't seem to like me :) root@bladehawke /etc/X11/wmsession.d # ls 1kde 2gnome 6sawfish 9Icewm root@bladehawke /etc/X11/wmsession.d # chksession -F kde root@bladehawke /etc/X11/wmsession.d # mv 1kde 2kde root@bladehawke /etc/X11/wmsession.d # mv 2gnome 1gnome root@bladehawke /etc/X11/wmsession.d # ls 1gnome 2kde 6sawfish 9Icewm root@bladehawke /etc/X11/wmsession.d # chksession -F kde root@bladehawke /etc/X11/wmsession.d # (This is what I get for upgrading kde :) -- Anton GrahamGPG ID: 0x18F78541 [EMAIL PROTECTED] RSA key available upon request "And remember: Evil will always prevail, because Good is dumb." -- Spaceballs