How to change White Box Icon on Title Bar's Far Left? (Fossapup64)

Moderators: 666philb, Forum moderators

Post Reply
sonny
Posts: 695
Joined: Mon Feb 15, 2021 4:50 pm
Has thanked: 449 times
Been thanked: 163 times

How to change White Box Icon on Title Bar's Far Left? (Fossapup64)

Post by sonny »

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!

Whitebox.png
Whitebox.png (3.16 KiB) Viewed 1194 times
User avatar
OscarTalks
Posts: 624
Joined: Tue Jul 14, 2020 10:11 pm
Location: London UK
Has thanked: 2 times
Been thanked: 248 times

Re: White Box Icon on Title Bar's Far Left

Post by OscarTalks »

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.

sonny
Posts: 695
Joined: Mon Feb 15, 2021 4:50 pm
Has thanked: 449 times
Been thanked: 163 times

Re: White Box Icon on Title Bar's Far Left

Post by sonny »

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

User avatar
OscarTalks
Posts: 624
Joined: Tue Jul 14, 2020 10:11 pm
Location: London UK
Has thanked: 2 times
Been thanked: 248 times

Re: White Box Icon on Title Bar's Far Left

Post by OscarTalks »

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?

Attachments
fadein-icon.jpg
fadein-icon.jpg (64.15 KiB) Viewed 1183 times
sonny
Posts: 695
Joined: Mon Feb 15, 2021 4:50 pm
Has thanked: 449 times
Been thanked: 163 times

Re: White Box Icon on Title Bar's Far Left

Post by sonny »

Very much appreciated, Oscar!

And, what about this Inkscape's AppImage?

inkscape.png
inkscape.png (13.44 KiB) Viewed 1176 times

Also:

- VS Code
- Spotify

Do you consider this little issue a bug?

Onegaishimasu, Os!

User avatar
OscarTalks
Posts: 624
Joined: Tue Jul 14, 2020 10:11 pm
Location: London UK
Has thanked: 2 times
Been thanked: 248 times

Re: How to change White Box Icon on Title Bar's Far Left? (Fossapup64)

Post by OscarTalks »

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).

sonny
Posts: 695
Joined: Mon Feb 15, 2021 4:50 pm
Has thanked: 449 times
Been thanked: 163 times

Re: How to change White Box Icon on Title Bar's Far Left? (Fossapup64)

Post by sonny »

Good to know.

Cheers!

User avatar
OscarTalks
Posts: 624
Joined: Tue Jul 14, 2020 10:11 pm
Location: London UK
Has thanked: 2 times
Been thanked: 248 times

Re: How to change White Box Icon on Title Bar's Far Left? (Fossapup64)

Post by OscarTalks »

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.

Attachments
inkscape-icon.jpg
inkscape-icon.jpg (100.73 KiB) Viewed 1119 times
sonny
Posts: 695
Joined: Mon Feb 15, 2021 4:50 pm
Has thanked: 449 times
Been thanked: 163 times

Re: How to change White Box Icon on Title Bar's Far Left? (Fossapup64)

Post by sonny »

Wow, Oscar...
Arigato!
I was about to get started until I saw this.
You're a gentleman and a scholar!

sonny
Posts: 695
Joined: Mon Feb 15, 2021 4:50 pm
Has thanked: 449 times
Been thanked: 163 times

Re: How to change White Box Icon on Title Bar's Far Left? (Fossapup64) (Solved)

Post by sonny »

Dunno why Spotify's still no go...

https://repository-origin.spotify.com/p ... _amd64.deb

Spotify.png
Spotify.png (5.84 KiB) Viewed 1096 times
User avatar
OscarTalks
Posts: 624
Joined: Tue Jul 14, 2020 10:11 pm
Location: London UK
Has thanked: 2 times
Been thanked: 248 times

Re: How to change White Box Icon on Title Bar's Far Left? (Fossapup64) (Solved)

Post by OscarTalks »

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).

sonny
Posts: 695
Joined: Mon Feb 15, 2021 4:50 pm
Has thanked: 449 times
Been thanked: 163 times

Re: How to change White Box Icon on Title Bar's Far Left? (Fossapup64) (Solved)

Post by sonny »

Thanks again, Os.
Yeah, I did several tries (all names) with no result.

spotify2.png
spotify2.png (335.56 KiB) Viewed 779 times
User avatar
OscarTalks
Posts: 624
Joined: Tue Jul 14, 2020 10:11 pm
Location: London UK
Has thanked: 2 times
Been thanked: 248 times

Re: How to change White Box Icon on Title Bar's Far Left? (Fossapup64)

Post by OscarTalks »

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.

sonny
Posts: 695
Joined: Mon Feb 15, 2021 4:50 pm
Has thanked: 449 times
Been thanked: 163 times

Re: How to change White Box Icon on Title Bar's Far Left? (Fossapup64)

Post by sonny »

I tried every possible combination, but nothing worked.
The more mysterious something is, the more we wonder...
Thank you very much, Sir Oscar!

Post Reply

Return to “Fossapup64”