From a5a81592ef23b588ff76ffbcfaaf1fc7ca92be48 Mon Sep 17 00:00:00 2001 From: Sebastian Date: Fri, 3 Jun 2011 16:36:09 +0200 Subject: add support for distro icon in default theme --- src/os-plugins/plugins/desktop/OpenSLX/OSPlugin/desktop.pm | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/os-plugins/plugins/desktop/OpenSLX') diff --git a/src/os-plugins/plugins/desktop/OpenSLX/OSPlugin/desktop.pm b/src/os-plugins/plugins/desktop/OpenSLX/OSPlugin/desktop.pm index 2f04e124..3eee6c4e 100644 --- a/src/os-plugins/plugins/desktop/OpenSLX/OSPlugin/desktop.pm +++ b/src/os-plugins/plugins/desktop/OpenSLX/OSPlugin/desktop.pm @@ -650,6 +650,16 @@ sub _setupSupportedThemes my $supportedThemes = $self->{attrs}->{'desktop::supported_themes'} || ''; my @supportedThemes = split m{\s*,\s*}, $supportedThemes; + + # Copy common theme distro icons into plugion-repo folder + my $commonThemeSourcePath = "$self->{openslxBasePath}/lib/plugins/desktop/themes/common" + my $commonThemeTargetPath = "$self->{pluginRepositoryPath}/themes" + mkpath($commonThemeTargetPath); + slxsystem( + "cp -r $commonThemeSourcePath $commonThemeTargetPath/ 2>/dev/null" + ) == 0 or die _tr('unable to copy common theme files!'); + + return if !@supportedThemes; # Every theme is copied from the folder where it is found first, such that -- cgit v1.2.3-55-g7522