Bug 380113 - Plymouth KCM update-alternatives not able to set available themes
Summary: Plymouth KCM update-alternatives not able to set available themes
Status: RESOLVED FIXED
Alias: None
Product: systemsettings
Classification: Applications
Component: kcm_plymouth (show other bugs)
Version: 5.9.95
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-05-23 08:35 UTC by Leszek Lesner
Modified: 2019-08-01 15:13 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Leszek Lesner 2017-05-23 08:35:19 UTC
Trying to change the plymouth boot splash screen to solar theme. Go to 'System Settings->Startup and shutdown->Boot Splash' and I select solar theme then apply. It asks for password. But when hitting ok after providing password it shows an error message: 
"Unable to authenticate/execute the action: 2, update-alternatives returned with error condition 2."

The reason for this error is that the solar theme is not "installed" as alternative in the update-alternatives system. So using the update-alternatives --set command (line 69 of helper.cpp) will fail for it. In fact it will fail for every theme that isn't known to update-alternatives. 
This also means if I manually download and extract a theme to plymouths theme directory I am not able to set it

The best solution would be checking with 
update-alternatives --list default.plymouth 
if it outputs the path of the plymouth theme we want to set. 
If its not in there that means the update-alternatives needs to install the .plymouth file first before using set.
Comment 1 Leszek Lesner 2017-05-23 09:59:44 UTC
Added a review with a proposed fix: 
https://phabricator.kde.org/D5942
Comment 2 Nate Graham 2019-08-01 15:13:56 UTC
That patch landed years ago. Marking as Fixed.