helpÉtoilé - Support: sr #1665, Changable X Windows app icons in...

 
 
Show feedback again

sr #1665: Changable X Windows app icons in AZDock

Submitted by:  None
Submitted on:  Fri 29 Jun 2007 10:06:14 PM UTC  
 
Category: NonePriority: 5 - Normal
Severity: 1 - WishStatus: None
Privacy: PublicAssigned to: None
Originator Email: -unavailable-Open/Closed: Open
Operating System: None

Add a New Comment (Rich MarkupRich Markup):
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Fri 29 Jun 2007 10:06:14 PM UTC, original submission:

Hi,
First, I'd like to say that I'm really enjoying Étoilé, and I'm very much looking forward to it maturing.

I was wondering about icons in AZDock. Icons for many applications show up automatically (ex. Firefox, leafpad, vmware), but some others are just "?"'s (ex. xterm, xmms).

I looked around in the directory structure to see if I could find how icons for items in the dock were determined, but I had little luck. I found the ~/GNUstep/Library/ApplicationSupport/AZDock directory, but changing the .tiff's in it had no impact on the icons in the dock.

It appears to me that to be able to change the icons from defaults is unimplemented, no?

I'm not a programmer by any means, or even particularly skilled with these sort of things, but I looked at a bit of the source. It appears to me that this could be implemented without an overwhelming amount of trouble.

I'm looking at the updateIcon method in Services/Private/AZDock/AZXWindowApp.m. It looks to go a bit like this--
1) If icon is a null pointer, call XWindowIcon and get a bitmap that's returned from somewhere in xlib, and set the icon to that image
2) If icon is still a null pointer (meaning the application doesn't have a _NET_WM_ICON value), then set the icon to the "?" image

Would it be possible to implement a step before steps 1 & 2 that goes something like this--
1) Get the WM_CLASS string from the window
2) Check in some directory (~/GNUstep/Library/Icons or wherever it makes sense) for a file called (WM_CLASS of the window).(tiff/png/xpm/whatever)
3) If it exists, set icon to that image. Otherwise do the other stuff.

Anyway, I'm probably overlooking something important (like where the .tiff files in ~/GNUstep/Library/ApplicationSupport/AZDock come from & how they're used), but it would be nice to be able to define custom icons in the dock. It can be a bit confusing to find the correct application when there are a bunch of ?'s in the dock.

So, keep up the good work, and good luck with the upcoming release. I have to say that Étoilé is for me the most exciting thing as far as interacting with the computer goes that I'm aware of right now, and I'm looking forward to using it a lot.

Anonymous

 

(Note: upload size limit is set to 1024 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by None (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    No Changes Have Been Made to This Item
    Show feedback again

    Back to the top


    Powered by Savane 3.1-cleanup