Bug 380113

Summary: Plymouth KCM update-alternatives not able to set available themes
Product: [Applications] systemsettings Reporter: Leszek Lesner <leszek.lesner>
Component: kcm_plymouthAssignee: Plasma Bugs List <plasma-bugs>
Status: RESOLVED FIXED    
Severity: normal CC: bugseforuns, nate, notmart
Priority: NOR    
Version: 5.9.95   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:

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.