summaryrefslogtreecommitdiffstats
path: root/src/os-plugins/plugins/desktop/OpenSLX
diff options
context:
space:
mode:
authorSebastian2011-06-03 16:36:09 +0200
committerSebastian2011-06-03 16:36:09 +0200
commita5a81592ef23b588ff76ffbcfaaf1fc7ca92be48 (patch)
tree3161a43e44655838d098b2bf5e9bffa23e789ee1 /src/os-plugins/plugins/desktop/OpenSLX
parentadd linuxmint desktop distro pm (diff)
downloadcore-a5a81592ef23b588ff76ffbcfaaf1fc7ca92be48.tar.gz
core-a5a81592ef23b588ff76ffbcfaaf1fc7ca92be48.tar.xz
core-a5a81592ef23b588ff76ffbcfaaf1fc7ca92be48.zip
add support for distro icon in default theme
Diffstat (limited to 'src/os-plugins/plugins/desktop/OpenSLX')
-rw-r--r--src/os-plugins/plugins/desktop/OpenSLX/OSPlugin/desktop.pm10
1 files changed, 10 insertions, 0 deletions
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