LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-29-2022, 11:56 AM   #1
ordealbyfire83
Member
 
Registered: Oct 2006
Location: Leiden, Netherlands
Distribution: LFS, Ubuntu Hardy
Posts: 302

Rep: Reputation: 89
Compiz (0.8.18) Application Switcher not showing some icons


As the title suggests, my Alt+Tab Application Switcher only shows a generic icon for some applications, mostly Mate programs.

My main question is, What directories does compiz search for the icons that are displayed in the Application Switcher?

Atril has its icon displayed properly, but mate-terminal, mate-calc, pluma, and others do not. Looking at the .desktop files, if that's what is used, the icon requested for atril resides in the 'hicolor' directory but the others seem to be in 'mate'. Changing the icon theme in the Mate Appearance dialog between themes does not help either.

FWIW this problem does not happen in compiz 0.9.x.

This might be a bug, but I don't know how to further diagnose the problem. Any suggestions?
 
Old 09-05-2022, 10:32 AM   #2
ordealbyfire83
Member
 
Registered: Oct 2006
Location: Leiden, Netherlands
Distribution: LFS, Ubuntu Hardy
Posts: 302

Original Poster
Rep: Reputation: 89
Just to follow up, I see there is a pretty long-standing bug on launchpad for this (#1088178). To investigate further, I compiled both versions of compiz (0.8 and 0.9) to separate prefixes and ran them in different user accounts, and both nowadays exhibit this behavior. I in fact compiled the exact same 0.9 tarball that I used on BLFS-7.9, where I did not have this problem.

There is not much documentation on this, but after poking around in the source, it looks like compiz gets its icons from X11 and not through the *.desktop files directly. In short there is miscommunication between compiz and X11 nowadays that did not happen before, so this is unlikely a compiz problem.

To investigate, you can launch an offending program for which compiz gives you a generic icon by using strace and directing the output to a text file, and then closing the program. In the log, look for icons, specifically 'png' files, and note which icon and size is first listed.

Now run xprop from a terminal (this should be included in a standard X11 installation). The cursor should turn into a + symbol. Launch the offending program, and then click with the + pointer on the program window (the actual window, not the title bar). Scroll up through the output and verify that icons are displayed.

In my case, the first icon found by strace was of size 256x256, and xprop showed (not displayed) next to this size.

I further found that I got compiz to show all icons properly when I used an icon theme called ContrastHigh-SVG that is apparently included with Mate.

Then, I compared the index.theme files for the 'Mate' and 'ContrastHigh-SVG' themes. Viola. ContrastHigh-SVG does not contain any references to 256x256 icons, and the largest is 128x128.

So, I backed up the index.theme and icon-theme.cache files for the Mate icon theme, opened index.theme and removed all references to 256x256 in the "Directories" line as well as the 256x256 entries farther below. Then I ran gtk-update-icon-cache to regenerate the cache. In the Mate Appearances I switched the icon theme to something else, and then back to my usual theme. Press ALT+TAB and all icons show up properly.

I'm not marking this as solved as this is only a workaround.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Not showing folder icons, file icons. while in root CodyAcer Linux - Software 2 08-28-2014 12:14 AM
[SOLVED] Gnome 2 workspace switcher only one row with Compiz? Why? szboardstretcher Linux - Software 3 12-06-2011 09:56 AM
Program icons in workspace switcher blackdragonblood Linux - Software 0 02-01-2007 01:39 PM
compiz and switcher ? matrixon Linux - Software 0 03-29-2006 09:24 AM
Showing workspace switcher in gnome/fluxbox ethics Linux - Newbie 1 07-02-2005 08:09 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:16 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration