summaryrefslogtreecommitdiffstats
path: root/os-plugins/plugins/vmchooser/OpenSLX/Distro/Suse.pm
diff options
context:
space:
mode:
authorDirk von Suchodoletz2010-02-28 17:52:02 +0100
committerDirk von Suchodoletz2010-02-28 17:52:02 +0100
commit93b96836f5bfd34ebfed8c9d004b679b5ba96506 (patch)
treee7b44e845398d664697976e5b530ce172954fe99 /os-plugins/plugins/vmchooser/OpenSLX/Distro/Suse.pm
parentAdd slx binary path (var/opt/openslx/bin), fix console-kit-daemon issue (diff)
downloadcore-93b96836f5bfd34ebfed8c9d004b679b5ba96506.tar.gz
core-93b96836f5bfd34ebfed8c9d004b679b5ba96506.tar.xz
core-93b96836f5bfd34ebfed8c9d004b679b5ba96506.zip
Changing directory 'X11/sessions' to 'X11/session' as this one seems to
be the proper one ...
Diffstat (limited to 'os-plugins/plugins/vmchooser/OpenSLX/Distro/Suse.pm')
-rw-r--r--os-plugins/plugins/vmchooser/OpenSLX/Distro/Suse.pm24
1 files changed, 11 insertions, 13 deletions
diff --git a/os-plugins/plugins/vmchooser/OpenSLX/Distro/Suse.pm b/os-plugins/plugins/vmchooser/OpenSLX/Distro/Suse.pm
index 9e0bf551..c93a066b 100644
--- a/os-plugins/plugins/vmchooser/OpenSLX/Distro/Suse.pm
+++ b/os-plugins/plugins/vmchooser/OpenSLX/Distro/Suse.pm
@@ -1,4 +1,4 @@
-# Copyright (c) 2008 - OpenSLX GmbH
+# Copyright (c) 2008..2010 - OpenSLX GmbH
#
# This program is free software distributed under the GPL version 2.
# See http://openslx.org/COPYING
@@ -33,17 +33,15 @@ use OpenSLX::Utils;
sub copyDefaultSession
{
- my $self = shift;
- my $pluginroot = shift;
-
-
- # Take the default path of SuSE
- # (as we have the most experience with it)
- if( -f "/etc/X11/sessions/default.desktop") {
- rename("/etc/X11/sessions/default.desktop",
- "/etc/X11/sessions/default.desktop.back")
+ my $self = shift;
+ my $pluginroot = shift;
+
+ # Take the default path of SuSE
+ # (as we have the most experience with it)
+ if( -f "/etc/X11/session/default.desktop") {
+ rename("/etc/X11/session/default.desktop",
+ "/etc/X11/session/default.desktop.back")
}
- copyFile("$pluginroot/default.desktop","/etc/X11/sessions");
-
- return 1;
+ copyFile("$pluginroot/default.desktop","/etc/X11/session");
+ return 1;
} \ No newline at end of file