aboutsummaryrefslogtreecommitdiffstats
path: root/sbin
diff options
context:
space:
mode:
authorFrederic Crozat <fcrozat@mandriva.com>2003-08-26 16:09:25 +0000
committerFrederic Crozat <fcrozat@mandriva.com>2003-08-26 16:09:25 +0000
commit8cfb477749bace43a04f4fcdb5dac80402236620 (patch)
treee9917b9ae97e856b530aeec4d2e359699efa4f27 /sbin
parent9aed359d9184864f8cb3e78294419473521617c9 (diff)
downloadcommon-data-8cfb477749bace43a04f4fcdb5dac80402236620.tar
common-data-8cfb477749bace43a04f4fcdb5dac80402236620.tar.gz
common-data-8cfb477749bace43a04f4fcdb5dac80402236620.tar.bz2
common-data-8cfb477749bace43a04f4fcdb5dac80402236620.tar.xz
common-data-8cfb477749bace43a04f4fcdb5dac80402236620.zip
Add default session for GDM
Diffstat (limited to 'sbin')
-rw-r--r--sbin/chksession12
1 files changed, 12 insertions, 0 deletions
diff --git a/sbin/chksession b/sbin/chksession
index 23a7e2a..cb8603c 100644
--- a/sbin/chksession
+++ b/sbin/chksession
@@ -101,6 +101,7 @@ if ($kdm) {
if ($gdm) {
my $d = '/etc/X11/dm/Sessions/';
+ -d $d or system("mkdir -p $d");
chdir $d;
for my $file (@lf) {
@@ -115,6 +116,17 @@ if ($gdm) {
close FH;
chmod 0755, $file;
}
+ open FH, ">/etc/X11/dm/Sessions/Default.desktop" or die "Can't write to /etc/X11/dm/Sessions/Default.desktop\n";
+ print FH "[Desktop Entry]\n";
+ print FH "Encoding=UTF-8\n";
+ print FH "Name=Default\n";
+ print FH "Comment=Default\n";
+ print FH "Exec=/etc/X11/xdm/Xsession\n";
+ print FH "Icon=\n";
+ print FH "Type=Application\n";
+ close FH;
+ chmod 0755, $file;
+
}