From 93b96836f5bfd34ebfed8c9d004b679b5ba96506 Mon Sep 17 00:00:00 2001 From: Dirk von Suchodoletz Date: Sun, 28 Feb 2010 17:52:02 +0100 Subject: Changing directory 'X11/sessions' to 'X11/session' as this one seems to be the proper one ... --- .../plugins/vmchooser/OpenSLX/Distro/Suse.pm | 24 ++++++++++------------ 1 file changed, 11 insertions(+), 13 deletions(-) (limited to 'os-plugins/plugins/vmchooser/OpenSLX/Distro/Suse.pm') 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 -- cgit v1.2.3-55-g7522