AppImage / AppImage/AppImageKit

Set _NET_WM_ICON so that Dock shows correct icon

オープン
#779 コメント 5 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
言語のデータがありません
スター
9.4k
フォーク
588
PR マージ指標
PR 指標を取得中

説明

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.

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。