Greg Ercolano wrote:
>>      [JWM/"Joe's Window Manager": http://joewing.net/programs/jwm/]
> 
>       FWIW, you might check:
>       
> http://standards.freedesktop.org/icon-theme-spec/icon-theme-spec-latest.html#install_icons
>       ..which might be what jwm is using.
> 
>       In this case it's not the app's code that sets the icon,
>       but is an installation step for the app.

    To check, I just dl'ed puppy linux and booted off the cd (w/out installing 
it)
    and brought up the window manager.

    First I looked at the default terminal's behavior (rxvt); when I stow
    the app, it shows the app's icon.

    Then I made a copy of the rxvt binary in /tmp and called it 'erco'
    and ran it as /tmp/erco.

    The terminal opened, but when I stowed it I got a red 'X' in the
    application bar at the bottom of the screen as I kinda expected.
    This would seem to show the app isn't setting its own icon.

    Next I searched the disk for rxvt with 'find / | grep rxvt' to find
    the icon being associated with it, which in my case found (among other
    things) /usr/local/lib/X11/mini-icons/rxvt.xpm

    So I made a copy of that file in the same directory called 'erco.xpm':

        ( cd /usr/local/lib/X11/mini-icons; cp rxvt.xpm erco.xpm )

    ..and when I executed /tmp/erco and stowed it, this time I got the rxvt
    icon in the dock.

    So pretty sure it's just an install step for your  app to put your
    xpm file in the correct location for the window manager to find it,
    with a name that matches the name of your app. See the above link
    standard for naming details.

    I believe the reason for this is so that the user can change the
    overall desktop theme, and thus have different icons associated with it.
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to