Mageia Bugzilla – Attachment 788 Details for
Bug 2740
chksession does not create the script for lxdm
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
New Account
|
Forgot Password
[patch]
patch for file chksession
chksession.patch (text/plain), 1.41 KB, created by
Georges Eckenschwiller
on 2011-09-14 07:29:45 CEST
(
hide
)
Description:
patch for file chksession
Filename:
MIME Type:
Creator:
Georges Eckenschwiller
Created:
2011-09-14 07:29:45 CEST
Size:
1.41 KB
patch
obsolete
>--- chksession 2011-08-24 15:15:32.000000000 +0200 >+++ /usr/sbin/chksession 2011-09-13 18:47:12.000000000 +0200 >@@ -4,6 +4,7 @@ > ## For info, see "chksession --help" or "man chksession" > > # Modified by Bernard Lang on August 21, 2003. >+# Modified by paiiou on September 12, 2011. > > > my @lf; >@@ -24,6 +25,7 @@ > -k, --kdm3: Produce window-managers list for kdm3 sessions. > -K, --kdm4: Produce window-managers list for kdm4 sessions. > -g, --gdm: Produce window-managers script for gdm sessions. >+ -z, --zdm: Produce window-managers script for lxdm sessions. > -h, --help: Produce this help. > > EOF >@@ -62,8 +64,10 @@ > print FH "Name=$file\n"; > print FH "Comment=$file\n"; > print FH "TryExec=$exe{$file}\n" if $exe{$file}; >- if ($usesession) { >+ if ($usesession == 1) { > print FH "Exec=/usr/share/X11/xdm/Xsession $file\n"; >+ } elsif ($usesession == 2) { >+ print FH "Exec=$exe{$file}\n" if $exe{$file}; > } else { > print FH "Exec=$file\n"; > } >@@ -94,6 +98,8 @@ > $kdm3++; > } elsif (/^--kdm4/ || /^-K/) { > $kdm4++; >+ } elsif (/^--zdm/ || /^-z/) { >+ $lxdm++; > } elsif (/^--test/ || /^-t/) { > $test++; > } elsif (/^--dir=([^ ]+)/ || /^-d=([^ ]+)/) { >@@ -135,6 +141,10 @@ > gen_desktops('/etc/X11/dm/Sessions', 1); > } > >+if ($lxdm) { >+ gen_desktops('/usr/share/xsessions', 2); >+} >+ > if ($xsession) { > if ($script{$xsession}) { > print "#!/bin/sh\n";
--- chksession 2011-08-24 15:15:32.000000000 +0200 +++ /usr/sbin/chksession 2011-09-13 18:47:12.000000000 +0200 @@ -4,6 +4,7 @@ ## For info, see "chksession --help" or "man chksession" # Modified by Bernard Lang on August 21, 2003. +# Modified by paiiou on September 12, 2011. my @lf; @@ -24,6 +25,7 @@ -k, --kdm3: Produce window-managers list for kdm3 sessions. -K, --kdm4: Produce window-managers list for kdm4 sessions. -g, --gdm: Produce window-managers script for gdm sessions. + -z, --zdm: Produce window-managers script for lxdm sessions. -h, --help: Produce this help. EOF @@ -62,8 +64,10 @@ print FH "Name=$file\n"; print FH "Comment=$file\n"; print FH "TryExec=$exe{$file}\n" if $exe{$file}; - if ($usesession) { + if ($usesession == 1) { print FH "Exec=/usr/share/X11/xdm/Xsession $file\n"; + } elsif ($usesession == 2) { + print FH "Exec=$exe{$file}\n" if $exe{$file}; } else { print FH "Exec=$file\n"; } @@ -94,6 +98,8 @@ $kdm3++; } elsif (/^--kdm4/ || /^-K/) { $kdm4++; + } elsif (/^--zdm/ || /^-z/) { + $lxdm++; } elsif (/^--test/ || /^-t/) { $test++; } elsif (/^--dir=([^ ]+)/ || /^-d=([^ ]+)/) { @@ -135,6 +141,10 @@ gen_desktops('/etc/X11/dm/Sessions', 1); } +if ($lxdm) { + gen_desktops('/usr/share/xsessions', 2); +} + if ($xsession) { if ($script{$xsession}) { print "#!/bin/sh\n";
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 2740
: 788 |
1163