Some apps fail to display their own icon title bar icon.
Does any one know how to fix this issue, or find this ugly whitebox icon's location?
Onegaishimasu!
Moderators: 666philb, Forum moderators
Some apps fail to display their own icon title bar icon.
Does any one know how to fix this issue, or find this ugly whitebox icon's location?
Onegaishimasu!
The window manager displays this as a fallback if it can not find a suitable icon with the correct name in one of the icon path directories. You can fix it by finding out what a suitable icon would be and then providing it in one of those locations. Give a few more details of Puppy and program if you need any more specific help.
Oscar, thank you for your response.
I'm running FossaPup64.
You can test with this app:
https://www.fadeinpro.com/download/demo ... 4-demo.deb
In this case you need to copy the icon /usr/share/fadein/icon_app/fadein_icon_48x48.png to /usr/share/pixmaps and make sure to rename the copy as just fadein.png
This displays the icon in the upper left corner of the window title bar and also in the JWM tray (taskbar) button
Is that what you were wanting to do?
Very much appreciated, Oscar!
And, what about this Inkscape's AppImage?
Also:
- VS Code
- Spotify
Do you consider this little issue a bug?
Onegaishimasu, Os!
I don't know if I would call it a bug, but it happens when the configuration of the window manager is not fully compatible with the way the application is structured. In the case of appimages they open in a temporary filesystem tree, so sometimes the window manager can not find the icon.
Anyway, to determine what the icon is you need to provide, with the program window open (such as fadein), open a terminal and type xprop | grep WM_CLASS and press enter. The cursor changes to a cross which you hover over the fadein window and click. The terminal output tells you the WM_CLASS name between quotes "fadein"
So then you need an icon named fadein.png with a png extension (use 48x48) or you can use a svg icon named fadein.svg
Put this in one of the icon paths defined in /root/.jwmrc (I almost always use /usr/share/pixmaps)
Once you know what icon you need, you have to hunt around for it. In the case of fadein it is already there in the package, but it is in the wrong location and has the wrong name as far as JWM is concerned. Appimages can be extracted with UExtract so you might be able to obtain a suitable icon that way and install it in /usr/share/pixmaps or sometimes you have to look elsewhere for a suitable icon (such as the website of a program). You should be able to apply this method to any application that is displaying the white box instead of a suitable icon for the program. Often the icon will need to be the same as the program name (inkscape.png for inkscape for example).
Here is inkscape-1.2.1 appimage in FossaPup
Running the command I posted above reveals that the WM_CLASS string is in fact "org.inkscape.Inkscape"
Extracting the appimage with UExtract there is:-
/usr/share/icons/hicolor/48x48/apps/org.inkscape.Inkscape.png
(A suitable icon with a suitable name)
Manually copy this icon to /usr/share/pixmaps in your Puppy filesystem
The icon then displays in window and tray taskbar button.
Dunno why Spotify's still no go...
That spotify package does not want to run on my system, the error says "GPU process can not be used". Not sure if you need to do some other step, never tried it before.
Anyway, if you have installed that .deb and the window opens but with the white box, you can try copying the icon /usr/share/spotify/icons/spotify-linux-48.png to /usr/share/pixmaps but I think you have to rename it as spotify-client.png
Code: Select all
cp /usr/share/spotify/icons/spotify-linux-48.png /usr/share/pixmaps/spotify-client.png
If that does not work, with the spotify window open, open a terminal and type the command I posted above
xprop | grep WM_CLASS
press enter
move the cursor (thin cross-hairs) over the spotify window and click
Then post the terminal output here
or if the name is different from "spotify-client" change the icon name to whatever it is (with the .png suffix on the end).
Well that terminal output tells me that the icon needs to be named spotify.png and placed in /usr/share/pixmaps
If the program is installed then the command cp /usr/share/spotify/icons/spotify-linux-48.png /usr/share/pixmaps/spotify.png should do it, or you can do it manually in the file manager of course, but make sure all names and spellings are correct (no upper-case letters). You certainly need to restart the spotify program. I don't think you need to restart X but you can try that.
If you have done all that and double checked everything and it still does not display the icon then I am surprised. The method always works for me, but I am unable to test on my machine which is frustrating. Maybe there is something strange about that particular version. I tested the earlier version by downloading the .deb (1.1.26.501) and that opens OK with the icon displaying without me needing to do anything. I think it is the same as the one in quickpet which also works and displays the icon.
I tried every possible combination, but nothing worked.
The more mysterious something is, the more we wonder...
Thank you very much, Sir Oscar!