You are not logged in.

#1 2014-06-08 07:36:33

earn
Member
Registered: 2014-06-08
Posts: 2

Customize Icon application

Hi guys,
I just try to add an icon to Pure Data. I entered this pd.desktop in

/usr/share/applications

:

[Desktop Entry]
Encoding=UTF-8
Type=Application
Name=Pd
Comment=pd
Exec=/usr/bin/pd
Icon=/home/arnaud/.icons/pd.png
Terminal=false
StartupNotify=false
Categories=Application;

pd.png is a 48*48px png. Still, in the upperleft corner or in Tint2, the proper icon doesn't show.

What did I miss ?

Thanks

Last edited by earn (2014-06-08 07:37:12)

Offline

#2 2014-06-08 12:42:01

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Customize Icon application

Do you get any useful info when you run 'desktop-file-validate <your desktop file>'?

Offline

#3 2014-06-08 12:47:09

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,545
Website

Re: Customize Icon application

Unless I'm mistaken, tint2 doesn't use the desktop files to get the icon - except for launchers.  Are you talking about launcher icons in tint2, or the icon that shows when that program is running?  If it's the former, does the launcher entry in tint2rc point to your revise desktop file?

If you want to change the icon displayed when the program is running, you need to change the icon hints (e.g. _NET_WM_ICON, or WM_HINTS icon pixmap member) for the toplevel window of that program.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#4 2014-06-09 01:29:58

earn
Member
Registered: 2014-06-08
Posts: 2

Re: Customize Icon application

It's the icon when the application is running.
I'll look into that, thanks !

Offline

#5 2014-06-09 11:46:42

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,545
Website

Re: Customize Icon application

I used to have some aliases for various console programs (e.g., mutt) that would change the terminal icon to something I chose for that program, run the program, then reset the icon afterwards.  So I know there is some simply command with which you can easily change the icon (unless this was a terminal-specific ability) - something like xprop or wmctrl.  However, it's been quite a while since I've used such a setting and I can't seem to track it down.  Neither man page for xprop nor wmctrl gives much hope that it was actually either of those.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

Board footer

Powered by FluxBB