Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix the problem of Linux icon. #694

Merged
merged 1 commit into from
Mar 24, 2022
Merged

Fix the problem of Linux icon. #694

merged 1 commit into from
Mar 24, 2022

Conversation

EmeryWan
Copy link
Contributor

Linux 桌面环境下构建的 deb 和 AppImage 在 应用程序列表 和 Dock 中不能正确显示图标。

  • deb 包

在 gnome,kde,xfce 三个桌面(ubuntu)试了一下。是如下的显示:

gnome

kde

xfce

根据这里 https://www.electron.build/icons#linux

选择了和 macOS 相同的配置方式,生成 Linux 图标。

  • AppImage 包

识别应用在应启动时, Dock 不能显示图标。

AppImage 应用好像不能自动识别到 Dock 应用图标,需要在 new BrowserWindow 时显示配置(显示配置后 deb 包不受影响)


  • 更改后在三种桌面环境下进行了测试,已经能正常显示图标。

gnome

kde

xfce

  • AppImage 的 Dock 图标也正常

gnome-appimage

kde-appimage

xfce-appimage

@sonarcloud
Copy link

sonarcloud bot commented Mar 23, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@oldj oldj merged commit f237122 into oldj:master Mar 24, 2022
@oldj
Copy link
Owner

oldj commented Mar 24, 2022

感谢!🙏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants