diff options
Diffstat (limited to 'os-plugins/plugins/vmchooser/OpenSLX/Distro/Suse.pm')
-rw-r--r-- | os-plugins/plugins/vmchooser/OpenSLX/Distro/Suse.pm | 24 |
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 |