<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.kde.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugs.kde.org/"
          
          maintainer="sysadmin@kde.org"
>

    <bug>
          <bug_id>380113</bug_id>
          
          <creation_ts>2017-05-23 08:35:19 +0000</creation_ts>
          <short_desc>Plymouth KCM update-alternatives not able to set available themes</short_desc>
          <delta_ts>2019-08-01 15:13:56 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>2</classification_id>
          <classification>Applications</classification>
          <product>systemsettings</product>
          <component>kcm_plymouth</component>
          <version>5.9.95</version>
          <rep_platform>Other</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>NOR</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Leszek Lesner">leszek.lesner</reporter>
          <assigned_to name="Plasma Bugs List">plasma-bugs-null</assigned_to>
          <cc>bugseforuns</cc>
    
    <cc>nate</cc>
    
    <cc>notmart</cc>
          
          <cf_commitlink></cf_commitlink>
          <cf_versionfixedin></cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1677442</commentid>
    <comment_count>0</comment_count>
    <who name="Leszek Lesner">leszek.lesner</who>
    <bug_when>2017-05-23 08:35:19 +0000</bug_when>
    <thetext>Trying to change the plymouth boot splash screen to solar theme. Go to &apos;System Settings-&gt;Startup and shutdown-&gt;Boot Splash&apos; and I select solar theme then apply. It asks for password. But when hitting ok after providing password it shows an error message: 
&quot;Unable to authenticate/execute the action: 2, update-alternatives returned with error condition 2.&quot;

The reason for this error is that the solar theme is not &quot;installed&quot; 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&apos;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.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1677452</commentid>
    <comment_count>1</comment_count>
    <who name="Leszek Lesner">leszek.lesner</who>
    <bug_when>2017-05-23 09:59:44 +0000</bug_when>
    <thetext>Added a review with a proposed fix: 
https://phabricator.kde.org/D5942</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1872415</commentid>
    <comment_count>2</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2019-08-01 15:13:56 +0000</bug_when>
    <thetext>That patch landed years ago. Marking as Fixed.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>