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

Reply via email to