diff options
Diffstat (limited to 'src/os-plugins/plugins/desktop/OpenSLX/OSPlugin/desktop.pm')
-rw-r--r-- | src/os-plugins/plugins/desktop/OpenSLX/OSPlugin/desktop.pm | 10 |
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..6e6c929e 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 |