Schneegans / Gnome-Pie

A pie menu launcher for linux. Read the release announcement of version 0.7.2 at https://schneegans.github.io/news/2018/10/30/gnome-pie-072 Or have a look at the homepage!
http://schneegans.github.io/gnome-pie.html
MIT License
308 stars 54 forks source link

Some applications' icons are missing in the function of "Group: Window List" #137

Closed sudoyang closed 7 years ago

sudoyang commented 8 years ago

I am running ubuntu 16.04 with the newest version of gnome-pie. When I use Group:Windows List feature, I have some applications missing their icons, such as okular and image viewer.

Thanks!

Schneegans commented 8 years ago

Hi there! Did this issue arise with the latest version or has this been a problem before?

sudoyang commented 8 years ago

It affects current version and also last version.

Schneegans commented 8 years ago

This will be hard to fix. Gnome-Pie is using Wnck to guess window icon names. It seems that for some applications this does not work. It may be possible to use some heuristics to extract an icon name from the window title (often the application name is part of the window's title and often the icon name is the same as the application name) but this will result in wrong icons quite often I fear.

The best would be to use another library to track the icon names of opened applications. However, I am not aware of any library which does this in an window-manager-independent way. Gnome-Pie used Bamf before, but this is not available on many systems. And I did not find any application where Bamf gave an icon which was not discovered by Wnck.

So I wonder: Is there a reliable, window-manager-independent way to get icon names for running applications?

sudoyang commented 8 years ago

I see. I do not really know the way. Maybe this is the limit of Linux system. Anyway, thanks for the response!

sudoyang commented 7 years ago

Btw, is it possible let user manually assign some icon files to those missing ones and the program can remember this configuration?

Schneegans commented 7 years ago

I fear not. The only information I can get (as far as I know) is the window's title. And this changes frequently - Firefox displays the name of the current tab, a music player shows the current track and so on...

sudoyang commented 7 years ago

I see. Headache problem.

Schneegans commented 7 years ago

Maybe this has been fixed by 9f8ff5e. f not, please reopen this issue!