Bug 334134

Summary: Making a new theme with "Plasma Themes Customization configuration module" produces an incompatible metadata.desktop file that can't be handled by "Get New Themes" module.
Product: [Applications] systemsettings Reporter: vivrecoeur
Component: kcm_desktopthemedetailsAssignee: Jeremy Whiting <jpwhiting>
Status: RESOLVED UNMAINTAINED    
Severity: normal CC: jpwhiting, plasma-bugs-null
Priority: NOR    
Version First Reported In: 4.11.9   
Target Milestone: ---   
Platform: Kubuntu   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description vivrecoeur 2014-04-30 12:56:08 UTC
When making (fusing) new plasma themes with "Plasma Themes Customization configuration module", the resultant theme has an invalid metadata.desktop file. 

I have filled all the information in the module: 
-New theme name
-Author
-Version
-Description

But the resultant metadata.desktop file is like this:
[Desktop Entry]
Comment=Sand Turtle Plasma Theme.
Name=Sand Turtle
X-KDE-PluginInfo-Author=J4R0K4
X-KDE-PluginInfo-Version=1.1

The real problem is that the invalid metadata.desktop file obtained can't be handled by "Get New Themes" module in SystemSettings. So when I upload the theme to www.kde-look.org and try to install it using "Get New Themes" module in SystemSettings, it can't install it because of that invalid metadata.desktop.

This is what it should be:
[Desktop Entry]
Name=Sand Turtle
Comment=Sand Turtle Plasma Theme.
X-KDE-PluginInfo-Author=J4R0K4
X-KDE-PluginInfo-Name=SandTurtle
X-KDE-PluginInfo-Version=1.0
X-KDE-PluginInfo-Website=http://plasma.kde.org
X-KDE-PluginInfo-Category=
X-KDE-PluginInfo-Depends=
X-KDE-PluginInfo-License=CC by-sa
X-KDE-PluginInfo-EnabledByDefault=true

With that information, "Get New Themes" module in SystemSettings can handle it and install properly from www.kde-look.org.

It would be great if "Plasma Themes Customization configuration module" could produce valid metadata.desktop files, to ease developers to upload new themes to kde-look.org and to ease the installation of themes by users, taking advantage from the power of KDE software.

Reproducible: Always

Steps to Reproduce:
1. Go to "Plasma Themes Customization configuration module" in SystemSettings.
2. Mix themes properties.
3. Fill all the information in the module (new theme name, author, version and description).
4. Select "Apply" to get the new theme with an invalid metadata.desktop file.
Actual Results:  
You get the new theme created with an invalid metadata.desktop file that you can find in ~/.kde/share/apps/desktoptheme/ThemeName.

Expected Results:  
Make a valid metadata.desktop that could be handled correctly by the "Get New Themes" module in SystemSettings.
Comment 1 vivrecoeur 2014-04-30 13:15:12 UTC
One more thing: to be compatible with "Get New Themes" module, "X-KDE-PluginInfo-Name=" field in metadata.desktop file can't contain spaces or symbols. It only can contain letters and numbers.
Comment 2 Jeremy Whiting 2015-09-26 15:07:47 UTC
Taking, this shouldn't be too hard to solve.
Comment 3 David Edmundson 2018-04-25 21:43:56 UTC
This KCM has been effectively replaced with plasmathemeexplorer in plasma-sdk.

If your bug still remains please roepen it there.