Check if plymouth file is known to update-alternatives before setting

Authored by leszeklesner on May 23 2017, 9:59 AM.



If the plymouth theme is not known to update-alternatives trying to execute update-alternatives --set will always fail.
As plymouth kcm shows all plymouth themes in themes directory but not all are necessarily known to update-alternatives we need to check if they are known and if not use the update-alternatives --install instead of --set.

Diff Detail

R258 Plymouth KCM
Automatic diff as part of commit; lint not applicable.
Automatic diff as part of commit; unit tests not applicable.
leszeklesner created this revision.May 23 2017, 9:59 AM
Restricted Application added a project: Plasma. · View Herald TranscriptMay 23 2017, 9:59 AM
Restricted Application added a subscriber: plasma-devel. · View Herald Transcript
mart accepted this revision.May 23 2017, 12:10 PM
This revision is now accepted and ready to land.May 23 2017, 12:10 PM
fvogt added a subscriber: fvogt.May 23 2017, 2:55 PM
fvogt added inline comments.

Should be update-alternatives here.

Fixed qDebug typo.

This revision was automatically updated to reflect the committed changes.