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

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

Details

Summary

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

Repository
R258 Plymouth KCM
Lint
Lint Skipped
Unit
Unit Tests Skipped
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.
src/helper.cpp
70

Should be update-alternatives here.

Fixed qDebug typo.

This revision was automatically updated to reflect the committed changes.