<?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>507681</bug_id>
          
          <creation_ts>2025-07-31 03:10:03 +0000</creation_ts>
          <short_desc>The plasma-apply-desktoptheme cli tool does not work anymore.</short_desc>
          <delta_ts>2025-08-14 15:39:57 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Plasma</classification>
          <product>plasmashell</product>
          <component>general</component>
          <version>6.4.3</version>
          <rep_platform>Arch Linux</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>regression</keywords>
          <priority>NOR</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.0</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Revincx">revincx233</reporter>
          <assigned_to name="Plasma Bugs List">plasma-bugs-null</assigned_to>
          <cc>kde</cc>
    
    <cc>nate</cc>
    
    <cc>revincx233</cc>
          
          <cf_commitlink>https://invent.kde.org/plasma/plasma-workspace/-/commit/dfd6d253467deb5df1c2e61771978394ecd52449</cf_commitlink>
          <cf_versionfixedin>6.4.5</cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2444138</commentid>
    <comment_count>0</comment_count>
    <who name="Revincx">revincx233</who>
    <bug_when>2025-07-31 03:10:03 +0000</bug_when>
    <thetext>SUMMARY

Plasmashell provides a series of cli tools to change plasma themes such as plasma-apply-colorscheme and plasma-apply-desktoptheme. But the tool plasma-apply-desktoptheme doesn&apos;t take effect anymore. Although the desktop theme setings changed after using the tool, the theme and style of plasma panels doesn&apos;t change immediately.

STEPS TO REPRODUCE
1. Exec `plasma-apply-desktoptheme [desktop theme]` in terminal.
2. Notice the changes of plasma panels.

OBSERVED RESULT

The theme of plasma panels doesn&apos;t change.

EXPECTED RESULT

The theme  of plasma panels changes immediately.

SOFTWARE/OS VERSIONS

Linux/KDE Plasma: Arch Linux
KDE Plasma Version: 6.4.3
KDE Frameworks Version: 6.16.0
Qt Version: 6.9.1</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2444950</commentid>
    <comment_count>1</comment_count>
    <who name="Bug Janitor Service">bug-janitor</who>
    <bug_when>2025-08-03 17:54:31 +0000</bug_when>
    <thetext>A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-workspace/-/merge_requests/5732</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2446348</commentid>
    <comment_count>2</comment_count>
    <who name="Nicolas Fella">nicolas.fella</who>
    <bug_when>2025-08-10 12:48:51 +0000</bug_when>
    <thetext>Git commit 2a709066fc725d774a55ca0ac221cefa65eda0d2 by Nicolas Fella.
Committed on 10/08/2025 at 12:48.
Pushed by nicolasfella into branch &apos;master&apos;.

[plasma-apply-desktoptheme] Notify config change

https://invent.kde.org/plasma/libplasma/-/commit/af85630935c050ca2600b2c5eae7d55a23b2848e
changed Plasma::Theme to use KConfigWatcher to react to config changes instead of
file-monitoring plasmarc.

That means we need to pass the notify flag when writing the config change.

To be able to do that manipulate the config directly instead of through the
Theme API

M  +14   -5    kcms/desktoptheme/plasma-apply-desktoptheme.cpp

https://invent.kde.org/plasma/plasma-workspace/-/commit/2a709066fc725d774a55ca0ac221cefa65eda0d2</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2446349</commentid>
    <comment_count>3</comment_count>
    <who name="Nicolas Fella">nicolas.fella</who>
    <bug_when>2025-08-10 12:49:24 +0000</bug_when>
    <thetext>Git commit dfd6d253467deb5df1c2e61771978394ecd52449 by Nicolas Fella.
Committed on 10/08/2025 at 12:49.
Pushed by nicolasfella into branch &apos;Plasma/6.4&apos;.

[plasma-apply-desktoptheme] Notify config change

https://invent.kde.org/plasma/libplasma/-/commit/af85630935c050ca2600b2c5eae7d55a23b2848e
changed Plasma::Theme to use KConfigWatcher to react to config changes instead of
file-monitoring plasmarc.

That means we need to pass the notify flag when writing the config change.

To be able to do that manipulate the config directly instead of through the
Theme API
(cherry picked from commit 2a709066fc725d774a55ca0ac221cefa65eda0d2)

M  +14   -5    kcms/desktoptheme/plasma-apply-desktoptheme.cpp

https://invent.kde.org/plasma/plasma-workspace/-/commit/dfd6d253467deb5df1c2e61771978394ecd52449</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>