You are not logged in.

#1 2012-09-25 08:06:00

bennylb0
Member
From: Melbourne, Australia
Registered: 2010-05-21
Posts: 66

Openbox window titlebar icons?

This is only minor, but I've noticed there are quite a few applications that do not set _NET_WM_ICON variable that allows openbox to find the correct icon to display in it's title bar.

I was wondering if there are any openbox users out there that have a workaround for this. I've tried xseticon but it segfaults.

Offline

#2 2012-09-25 08:24:07

nTia89
Banned
From: varese, italy
Registered: 2008-12-22
Posts: 1,230

Re: Openbox window titlebar icons?

i'm an openbox user but i don't see this problem.

could you list some affected application?


+pc: custom | AMD Opteron 175 | nForce4 Ultra | 2GB ram DDR400 | nVidia 9800GT 1GB | ArchLinux x86_64 w/ openbox
+laptop: Apple | MacBook (2,1) | 2GB ram | Mac OS X 10.4 -> DIED
+ultrabook: Dell | XPS 13 (9343) | 8GB ram | 256GB ssd | FullHD display | Windows 8.1 64bit ArchLinux x86_64 w/ Gnome

Offline

#3 2012-09-25 08:28:35

bennylb0
Member
From: Melbourne, Australia
Registered: 2010-05-21
Posts: 66

Re: Openbox window titlebar icons?

Sure, some applications affected are:-

galculator
tint2conf
obmenu
obkey

They all seem to have installed icons in /usr/share/pixmaps.

Offline

#4 2012-09-25 08:37:26

nTia89
Banned
From: varese, italy
Registered: 2008-12-22
Posts: 1,230

Re: Openbox window titlebar icons?

yes, you are right!

i tried with tint2conf and i get the "blank" icon. the only interesting output is:

(process:2802): GLib-CRITICAL **: g_hash_table_foreach: assertion `version == hash_table->version' failed

+pc: custom | AMD Opteron 175 | nForce4 Ultra | 2GB ram DDR400 | nVidia 9800GT 1GB | ArchLinux x86_64 w/ openbox
+laptop: Apple | MacBook (2,1) | 2GB ram | Mac OS X 10.4 -> DIED
+ultrabook: Dell | XPS 13 (9343) | 8GB ram | 256GB ssd | FullHD display | Windows 8.1 64bit ArchLinux x86_64 w/ Gnome

Offline

#5 2012-09-25 10:18:19

bennylb0
Member
From: Melbourne, Australia
Registered: 2010-05-21
Posts: 66

Re: Openbox window titlebar icons?

nTia89 wrote:

yes, you are right!

i tried with tint2conf and i get the "blank" icon. the only interesting output is:

(process:2802): GLib-CRITICAL **: g_hash_table_foreach: assertion `version == hash_table->version' failed

Yes it does output that but I'm not sure it's related. Does anyone else using openbox have this problem?

Offline

#6 2012-09-25 13:36:55

Reded
Member
From: Manchester, England
Registered: 2012-02-21
Posts: 242

Re: Openbox window titlebar icons?

I've always had this, I just assumed those windows didn't have icons tongue Hope you find a fix for this!


"Some humans would do anything to see if it was possible to do it. If you put a large switch in some cave somewhere, with a sign on it saying "End-of-the-World Switch. PLEASE DO NOT TOUCH", the paint wouldn't even have time to dry."

Offline

#7 2012-09-25 13:41:04

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,543
Website

Re: Openbox window titlebar icons?

I saw this when I used openbox.  But I never had a problem with xseticon.  For a while I had aliases for many programs I used that would call xseticon, run the program, then call xseticon again to resent my "terminal" icon.  I did this for many cli apps like mutt and calcurse.

I'd suggest tracking down why xseticon is giving you a segfault.  Are you providing the full path to a pixmap image?

edit: absolutely agree with the below comment.  This is not a flaw in O.B.  Yet it is resonable to search for ways to get things looking the way you'd like.  Xseticon should be a good tool for this.

Last edited by Trilby (2012-09-25 13:46:41)


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#8 2012-09-25 13:44:36

Gusar
Member
Registered: 2009-08-25
Posts: 3,607

Re: Openbox window titlebar icons?

If the application doesn't set that variable, then the problem is the application, not openbox. Though there are window managers that do somehow get the icon anyway, they probably use additional code that isn't in any specs (I'm guessing they search all .desktop files for one where the Exec line matches the app you're running), while openbox is more strict.

Offline

#9 2012-09-25 14:41:10

bennylb0
Member
From: Melbourne, Australia
Registered: 2010-05-21
Posts: 66

Re: Openbox window titlebar icons?

Yes not blaming openbox for this like I said it's the applications that does not set _NET_WM_ICON.

I have uninstalled galculator and installed gcalctool which sets the icon.

And for anyone reading this post zathura also has this problem which looks like it will be fixed in future but for now you can put the following in ~/.config/zathura/zathurarc

set window-icon /full/path/to/image

Offline

#10 2015-09-11 22:56:41

nishantvarma
Member
From: Bangalore
Registered: 2015-09-04
Posts: 27

Re: Openbox window titlebar icons?

Thanks this is helpful.

Offline

#11 2015-09-11 23:13:21

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 13,718
Website

Re: Openbox window titlebar icons?

Please don't necrobump, nishantvarma. Especially if you have nothing to add.

Closing.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

Board footer

Powered by FluxBB