diff options
-rw-r--r-- | mandrake_desk.spec | 5 | ||||
-rw-r--r-- | sbin/chksession | 21 |
2 files changed, 14 insertions, 12 deletions
diff --git a/mandrake_desk.spec b/mandrake_desk.spec index 979ae6e..07c87a0 100644 --- a/mandrake_desk.spec +++ b/mandrake_desk.spec @@ -1,7 +1,7 @@ Summary: The Desktop configuration files for Mandrake Linux Name: mandrake_desk Version: 9.1 -Release: 5mdk +Release: 6mdk License: GPL URL: http://www.mandrakelinux.com/ Group: System/Configuration/Other @@ -166,6 +166,9 @@ rm -fr %buildroot %changelog +* Fri Jun 13 2003 Frederic Crozat <fcrozat@mandrakesoft.com> - 9.1-6mdk +- gdm session format has changed, fix chksession + * Wed Jun 04 2003 David BAUDENS <baudens@mandrakesoft.com> 9.1-5mdk - Create a link to allow users to access to Mandrake's backgrounds from KDE diff --git a/sbin/chksession b/sbin/chksession index 6ce62d6..078965f 100644 --- a/sbin/chksession +++ b/sbin/chksession @@ -89,23 +89,22 @@ if ($kdm) { if ($gdm) { - my $d = '/etc/X11/gdm/Sessions/'; + my $d = '/etc/X11/dm/Sessions/'; chdir $d; - #Any better way ? - opendir D, $d or die "Can't open $d\n"; - for ( readdir(D)) { next if /^\.\.?/;next if /^Failsafe/; chmod 0644, $_; } - closedir D; - for my $file (@lf) { - open FH, ">/etc/X11/gdm/Sessions/$file" or die "Can't write to /etc/X11/gdm/Sessions/$file\n"; - print FH "#!/bin/sh\n"; - print FH "exec /etc/X11/xdm/Xsession $file\n"; + open FH, ">/etc/X11/dm/Sessions/$file.desktop" or die "Can't write to /etc/X11/dm/Sessions/$file.desktop\n"; + print FH "[Desktop Entry]\n"; + print FH "Encoding=UTF-8\n"; + print FH "Name=$file\n"; + print FH "Comment=$file\n"; + print FH "Exec=/etc/X11/xdm/Xsession $file\n"; + print FH "Icon=\n"; + print FH "Type=Application\n"; close FH; chmod 0755, $file; } - unlink 'Default'; - symlink shift @lf, 'Default'; + } if ($xsession) { |