Bug 182095 - Cannot change icon for panel button
Summary: Cannot change icon for panel button
Status: RESOLVED FIXED
Alias: None
Product: plasma4
Classification: Plasma
Component: widget-misc (show other bugs)
Version: unspecified
Platform: Fedora RPMs Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
: 216826 262740 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-01-27 16:01 UTC by Mathew Hennessy
Modified: 2011-12-02 14:52 UTC (History)
7 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Icon settings dialog (20.37 KB, image/jpeg)
2009-01-28 15:56 UTC, Mathew Hennessy
Details
icon shown in desktop folder (59.02 KB, image/png)
2010-01-21 14:22 UTC, pier andre
Details
icon on side panel isn't shown (9.21 KB, image/png)
2010-01-21 14:31 UTC, pier andre
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mathew Hennessy 2009-01-27 16:01:35 UTC
Version:            (using KDE 4.2.0)
OS:                Linux
Installed from:    Fedora RPMs

I have a shell script dragged down to the panel, but I can't change its icon.  KDE3 would let me change the icon, but I can't for the life of me figure out how to do it here.  I tried double-clicking, right-clicking, checking each tab of the Icon Settings dialog, nada.
Comment 1 Dario Andres 2009-01-28 02:49:08 UTC
How your "Icon Settings dialog" looks like for that icon? Can you post an screenshot? Thanks
Comment 2 Mathew Hennessy 2009-01-28 15:56:28 UTC
Created attachment 30674 [details]
Icon settings dialog
Comment 3 Mathew Hennessy 2009-01-28 15:59:01 UTC
When I attempt to right-click or otherwise interact with the icon, nothing happens..  And clicking on the wrench brings me to a MIME association page of some sort, which makes sense, but doesn't get me anywhere..
Comment 4 Mathew Hennessy 2009-01-29 16:25:31 UTC
Interesting, clicking on the icon for a menu item I dragged to the panel (konsole) works properly when I click on its icon (popup of icon selector dialog), but still not with the shell script.  konsole is of 'desktop configuration file' type, while the non-working icon is of 'shell script' type.
Comment 5 Dario Andres 2009-01-31 12:45:04 UTC
Indeed, I think you can't change the icon for a shell script (you can't do that in Dolphin either)
However, I can't drag a shell script into a panel; so I don't know how do you did it..
Anyways, It may be a bug as dragging a file to the panel would create a .desktop file for it (icon and description editable)

How did that icon got there? Do you dragged it using a previous KDE version ?
Thanks
Comment 6 Mathew Hennessy 2009-01-31 15:31:19 UTC
IIRC I dragged it down from a Konqi window.  In KDE3 there was a kicker option to create non-KDE icons, which would presumably create kdesktop files for them in the right place automagically.  This appears to be another useful bit forgotten in KDE4.

Given that distros are going to start deprecating KDE3 (or leaving it out altogether) very soon now, these missing/forgotten KDE3 features are going to bite a lot of KDE veteran users like myself very hard in the butt.
Comment 7 David Palacio 2010-01-04 05:19:15 UTC
The workaround is to create a .desktop file(an application shortcut) for the script and dragging that file to the panel. You can alter the icon then.

> Anyways, It may be a bug as dragging a file to the panel would create a
> .desktop file for it (icon and description editable)
See plasma-desktop-appletsrc for KDE 4.4
[Containments][10][Applets][159]
geometry=87,1,25,25
immutability=1
plugin=icon
zvalue=0

[Containments][10][Applets][159][Configuration]
Url=file:///home/david/bin/dbgrab.sh

No .desktop file created

> How did that icon got there? Do you dragged it using a previous KDE version ?
It works in 4.4.

IMO, the icon widget needs more flexibility. Instead of altering .desktop data, it should override it in the widget configuration (then non desktop files are configurable as well).
Comment 8 pier andre 2010-01-21 14:22:35 UTC
Created attachment 40094 [details]
icon shown in desktop folder
Comment 9 pier andre 2010-01-21 14:25:25 UTC
I have a similar problem, create a new link to URL in desktop folder, change its icon, drag it and drop on the side panel, in the side panel the icon isn't shown, if I ask properties in both cases the icon in the dialog is shown.
Comment 10 pier andre 2010-01-21 14:27:16 UTC
I have a similar problem, create new link to URL (smb://111.222.333.444) on the desktop folder, change its icon, drag it in the side panel, in the side panel appear without the assigned icon, if I ask properties in both cases appear with the propper icon but the icon isn't shown in the side panel.
Comment 11 pier andre 2010-01-21 14:31:54 UTC
Created attachment 40095 [details]
icon on side panel isn't shown
Comment 12 Russell 2010-05-13 22:38:14 UTC
I have a similar problem in that I *can not* change the icon for a link on a panel. I did find a solution. 

Steps to recreate:
1. Open Dolphin 
2. Right-click -> Create New -> Link to Location (URL)...
3. In the dialog, add a name and browse to directory. Click OK.
4. Right click this new link -> Properties
5. Click the icon button. Click "Other icons:" and browse to icon location. Select icon.

All looks good, until...

6. Right click and drag this link to an existing panel. The icon is *gone*. It is some sort of gray gear (default perhaps).
7. Right click the icon on the panel -> Icon Settings. The icon I selected is *there*. Just to make sure I repeat step 5. The icon settings look okay, but when I click OK, the icon on the panel doesn't change.

If I were to add a Folder View Widget and point it to the same directory as used in Dolphin above, I would see the correct icon.  It is when I drag this exact same link to a panel that the icon changes to a "default?" gray gear.

Environment:
 kdebase4 = v4.3.5
 dist = opensuse 11.2

I found a solution. The above process does not add ".desktop" to the file. If
I simple went to the directory and renamed the file to add ".desktop" it worked.
Comment 13 Marco Martin 2010-05-22 11:50:44 UTC
*** Bug 216826 has been marked as a duplicate of this bug. ***
Comment 14 Marco Martin 2011-01-10 12:43:03 UTC
*** Bug 262740 has been marked as a duplicate of this bug. ***
Comment 15 Thijs 2011-12-02 14:41:35 UTC
Still a bug in 4.8b1, also when putting icon on desktop instead of in panel.
Comment 16 Aaron J. Seigo 2011-12-02 14:52:35 UTC
i actually fixed this just this morning :)