AppImage / AppImage/AppImageKit

Set _NET_WM_ICON so that Dock shows correct icon

Aberta
#779 5 comentários 0 reações 0 responsáveis Ver no GitHub
Linguagem predominante
Sem dados de linguagem
Estrelas
9.4k
Forks
588
Métricas de merge de PRs
Métricas de PR pendentes

Descrição

Currently, the dock only shows the correct icon if an AppImage is either launched through a desktop file and/or the application explicitly sets a window icon (e.g., using Qt) like this:

```
QFileInfo fi(app.applicationDirPath() + "/../share/pixmaps/qtquickapp.png");
QGuiApplication::setWindowIcon(QIcon(fi.absoluteFilePath()));
```
which seems to set the `_NET_WM_ICON` according to https://git.qt.io/consulting-usa/qtbase-xcb-rendering/commit/6131b909532f7bfdcbc8fa2f35f2c6f84c06547d.

Could we make the AppImage `AppRun.c` read the icon from the desktop file, and have it set the application's `_NET_WM_ICON` programmatically?

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=465109 may contain some source code that might do it.

Guia de contribuição

Nenhum guia de contribuição indexado para este repositório

Avaliação

Esta issue ainda não foi avaliada.

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.