Score:2

How do you enable titlebar icons in 22.04

bt flag

How do you enable icons in window titlebars, it appears in ubuntu 22.04 they have been hidden for all applications?

The examples below are from the same java program running on ubuntu and windows. The java code that sets the icon is

pstage.getIcons().add(new Image(Objects.requireNonNull(getClass().getResourceAsStream("i100.png"))));

ubuntu titlebar

I would like the icon to appear (anywhere will do) in the titlebar as it does in windows.

windows titlebar

I would like to find the ubuntu gnome setting/tweak which allows icons to be displayed please.

This is the result of Linux Genie's suggestion below.

enter image description here

Score:0
tf flag

Use this command to enable app icon in titlebar:

gsettings set org.gnome.desktop.wm.preferences button-layout menu:appmenu,minimize,maximize,close
FedKad avatar
cn flag
I don't think that this will display the application icon on the titlebar. I don't think that GNOME even supports displaying application icon on the titlebar.
Linux Genie avatar
tf flag
It does. . https://imgsh.net/a/dqHgDEo.jpg
blm99 avatar
bt flag
ok, so that works for some applications, e.g. console now shows an icon. but not for others including the java apps, it just adds a 3 dash menu to the top left.
blm99 avatar
bt flag
btw the command to undo the suggested by FedKad is gsettings set org.gnome.desktop.wm.preferences button-layout ':minimize,maximize,close'
Linux Genie avatar
tf flag
Gnome setting/Tweak works only with Gnome applications.
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.