aboutsummaryrefslogtreecommitdiffstats
path: root/sbin/chksession
diff options
context:
space:
mode:
Diffstat (limited to 'sbin/chksession')
-rw-r--r--sbin/chksession4
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/chksession b/sbin/chksession
index db3bdd4..77a067d 100644
--- a/sbin/chksession
+++ b/sbin/chksession
@@ -108,8 +108,8 @@ if ($gdm) {
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";
- print FH $script{$file};
+ print FH "#!/bin/sh\n";
+ print FH "exec /etc/X11/Xsession $file\n";
close FH;
chmod 0755, $file;
}