<?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>441847</bug_id>
          
          <creation_ts>2021-09-01 07:52:25 +0000</creation_ts>
          <short_desc>No longer possible to change panel launcher icons to a different image</short_desc>
          <delta_ts>2021-11-03 15:35:37 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>3</classification_id>
          <classification>Frameworks and Libraries</classification>
          <product>frameworks-kio</product>
          <component>Properties dialog</component>
          <version>5.86.0</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>1</everconfirmed>
          <reporter name="PrimeSuspect">primesuspect</reporter>
          <assigned_to name="KIO Bugs">kio-bugs-null</assigned_to>
          <cc>ctrlaltca</cc>
    
    <cc>imagesfromobjects</cc>
    
    <cc>kdelibs-bugs-null</cc>
    
    <cc>nate</cc>
    
    <cc>stevenfalco</cc>
          
          <cf_commitlink>https://invent.kde.org/frameworks/kio/commit/3d257472c1e953f9e6e80247ba9554b0d286c494</cf_commitlink>
          <cf_versionfixedin>5.88</cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2057898</commentid>
    <comment_count>0</comment_count>
    <who name="PrimeSuspect">primesuspect</who>
    <bug_when>2021-09-01 07:52:25 +0000</bug_when>
    <thetext>SUMMARY


STEPS TO REPRODUCE
1. Right-click a program launcher assigned to the panel (add to panel - widget)
2. From the properties window click the default launcher icon image to change it 
3. Navigate to a different image from the system icons or to a saved image file 

OBSERVED RESULT
The final &apos;OK&apos; to change the launcher icon is not selectable


EXPECTED RESULT
The launcher icon should change to the different image selected


SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2066932</commentid>
    <comment_count>1</comment_count>
    <who name="Fabio">ctrlaltca</who>
    <bug_when>2021-10-07 08:06:35 +0000</bug_when>
    <thetext>I verified this bug, it happens with the &quot;icon&quot; applet.
The applet tries to set the &quot;filename&quot; lineedit readonly:

https://invent.kde.org/plasma/plasma-workspace/-/blob/master/applets/icon/iconapplet.cpp#L561

this causes the lineedit to get set to an empty text:

https://invent.kde.org/frameworks/kio/-/blob/master/src/widgets/kpropertiesdialog.cpp#L1242

but because of this signal/slot connection created on the ctor, the ok button gets disabled if the lineedit is empty:

https://invent.kde.org/frameworks/kio/-/blob/master/src/widgets/kpropertiesdialog.cpp#L1032

A possible solution would be to disable the connection to the KFilePropsPlugin::nameFileChanged slot when setFileNameReadOnly() gets called.


A quick workaround for users to edit the icons: locate the relevant desktop file in ~/.local/share/plasma_icons and run eg:

kioclient5 openProperties ~/.local/share/plasma_icons/org.kde.kate.desktop

Please don&apos;t change the file name, or it will probably break.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2067022</commentid>
    <comment_count>2</comment_count>
    <who name="Bug Janitor Service">bug-janitor</who>
    <bug_when>2021-10-07 15:45:33 +0000</bug_when>
    <thetext>A possibly relevant merge request was started @ https://invent.kde.org/frameworks/kio/-/merge_requests/597</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2068218</commentid>
    <comment_count>3</comment_count>
    <who name="Fabio Bas">fabio.bas</who>
    <bug_when>2021-10-13 15:22:19 +0000</bug_when>
    <thetext>Git commit 3d257472c1e953f9e6e80247ba9554b0d286c494 by Fabio Bas.
Committed on 13/10/2021 at 15:17.
Pushed by meven into branch &apos;master&apos;.

KFilePropsPlugin: Allow to edit properties when setFileNameReadOnly is set

Don&apos;t empty the fileNameLineEdit to avoid the dialog ok button being disabled by nameFileChanged()

M  +0    -1    src/widgets/kpropertiesdialog.cpp

https://invent.kde.org/frameworks/kio/commit/3d257472c1e953f9e6e80247ba9554b0d286c494</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2069052</commentid>
    <comment_count>4</comment_count>
    <who name="Patrick Silva">bugseforuns</who>
    <bug_when>2021-10-16 14:02:35 +0000</bug_when>
    <thetext>*** Bug 443796 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2070777</commentid>
    <comment_count>5</comment_count>
    <who name="Ahmad Samir">a.samirh78</who>
    <bug_when>2021-10-20 21:56:33 +0000</bug_when>
    <thetext>*** Bug 442183 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2074459</commentid>
    <comment_count>6</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2021-11-03 15:09:52 +0000</bug_when>
    <thetext>*** Bug 444564 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>