AppImage / AppImage/AppImageKit

Set _NET_WM_ICON so that Dock shows correct icon

未关闭
#779 5 条评论 0 个 reaction 已指派 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 摘要。