AppImage / AppImage/AppImageKit

Set _NET_WM_ICON so that Dock shows correct icon

Đang mở
#779 5 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Không có dữ liệu ngôn ngữ
Star
9.4k
Fork
588
Chỉ số merge pull request
Chỉ số pull request đang chờ

Mô tả

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.

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.