LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 11-07-2010, 04:16 AM   #1
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,578
Blog Entries: 31

Rep: Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208
Xfce: how to set icon for app in Task List and Cycle Windows?


Hello

How is an icon associated with an application so that it is displayed in Xfce's "Task List" and "Cycle windows" (the one that shows on Alt+Tab)?

I'd like to know the general mechanism and specifically how it can be done for urxvt.

Regards the general mechanism I've searched the freedesktop.org specifications and the Xfce WIKI but not been enlightened. I also looked into the MIME-info database but found only information about non-executable files ???

Regards urxvt, I've tried:
  • urxvt command options -xrm iconFile:<path-to-icon-file> and --iconName=<path-to-icon-file>.
  • ~/.local/share/applications/urxvt.desktop with an Icon= line (valid, as shown in the resulting menu entry) with StartupNotify set to both true and false.
Nothing has worked and the icon shown is, AFAIK, Xfce's default window icon, not the specified ones or urxvt's ... or it could be urxvt's ... ? It's attached.

Best

Charles
Attached Images
 
 
Old 11-07-2010, 06:51 PM   #2
impert
Member
 
Registered: Feb 2009
Posts: 282

Rep: Reputation: 54
I think you can do this if you have a launcher for the application in the task bar. Unless I'm mistaken it's just right click on the launcher, then in the dialogue box, click on the icon. You can then choose one of the standard icons, or use one that you have drawn with inkscape for instance. When the app shows in the task list it should have the icon from the launcher.
 
Old 11-08-2010, 11:09 AM   #3
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,578

Original Poster
Blog Entries: 31

Rep: Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208
Quote:
Originally Posted by impert View Post
I think you can do this if you have a launcher for the application in the task bar. Unless I'm mistaken it's just right click on the launcher, then in the dialogue box, click on the icon. You can then choose one of the standard icons, or use one that you have drawn with inkscape for instance. When the app shows in the task list it should have the icon from the launcher.
Thanks impert but I do have a launcher and normally start urxvt with it. Its icon is valid because it shows in the panel but it is not shown in the Task List or in the Cycle Windows window.

Last edited by catkin; 11-08-2010 at 12:08 PM.
 
Old 11-14-2010, 08:52 PM   #4
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,578

Original Poster
Blog Entries: 31

Rep: Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208
After further research and tentatively ...

If Xfce conforms to X Desktop Group standards and assuming the Task List icon is provided by the window manager then then it is not the .desktop files that define the icon (they are only used when displaying menu items) but the application itself which may pass hints to the window manager including _NET_WM_ICON for icon(s).

Regards rxvt-unicode (a.k.a urxvt), a patch to add _NET_WM_ICON functionality was discussed in this October 08 rxvt-unicode mailing-list thread (if viewing it is helpful to sort messages by thread) and added in the 9.06 release. It requires ENABLE_FRILLS set during build.

Regards the SlackBuild of rxvt-unicode 9.07 for Slackware 13.0, --enable-frills is used in the configure step so setting the icon via the -icon option and possibly -name option ought (TM) to work. As already described it does not under Slackware 13.0 and Slackware 13.1 running Xfce.

rxvt-unicode 9.09 was released yesterday so further investigation is deferred until that is installed.
 
Old 11-15-2010, 04:26 AM   #5
impert
Member
 
Registered: Feb 2009
Posts: 282

Rep: Reputation: 54
.
Quote:
Its icon is valid because it shows in the panel but it is not shown in the Task List or in the Cycle Windows window.
Oops. When I posted before I hadn't noticed that my home-grown icons didn't show in the Task List. Backup I start and then walk away from, the others are "places", so Nautilus or Thunar shows instead.
 
Old 11-15-2010, 04:51 AM   #6
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,578

Original Poster
Blog Entries: 31

Rep: Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208
Quote:
Originally Posted by impert View Post
. Oops. When I posted before I hadn't noticed that my home-grown icons didn't show in the Task List. Backup I start and then walk away from, the others are "places", so Nautilus or Thunar shows instead.
Thanks for the update

There's another app that doesn't tell xfwm4 which icon to display: PysolFC.
 
Old 12-21-2010, 04:52 AM   #7
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,578

Original Poster
Blog Entries: 31

Rep: Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208
Solved for urxvt with the help of Facundo Andrés Bianco and James Cloos on the rxvt-unicode mailing list.

After installing libAfterImage 1.18 (source linked in the SlackBuild not available so downloaded via mirror list) and rebuilding urxvt (9.10 but would probably have worked equally well for any recent version), urxvt's -icon option became available and effective.
 
  


Reply

Tags
app, cycle, icon, list, set, task, windows, xfce



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Irritating Re-Sizing of Buttons in XFCE Task List on Click -- Am I Alone Here? foodown Linux - Desktop 1 07-28-2010 12:09 AM
[SOLVED] Xfce desktop has become a Task List. How to restore? catkin Linux - Desktop 1 10-22-2009 09:46 AM
How to set the kde to display the directories and files in list view instead of icon vitalstrike82 Slackware 2 02-01-2009 01:45 PM
launching xwindows app from ms windows icon surban99 Linux - Networking 0 11-28-2007 03:11 PM
Xfce problems with task bar and xfce-panel aeruzcar Linux - Software 4 06-26-2006 05:29 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 01:25 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration