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

App Icon is missing in some places in GNOME #8

Closed
ziggy42 opened this issue Dec 14, 2017 · 3 comments · Fixed by #11
Closed

App Icon is missing in some places in GNOME #8

ziggy42 opened this issue Dec 14, 2017 · 3 comments · Fixed by #11

Comments

@ziggy42
Copy link

ziggy42 commented Dec 14, 2017

Description

The app icon is missing in some places:
screenshot from 2017-12-14 15-28-43
screenshot from 2017-12-14 15-29-19

I'm using the Appimage. I think that's the problem, because I have the exact same problem with NoSQLBooster and they're using Appimages too.

Version

GitHub Desktop version: 1.0.11
OS version: Fedora 27 with GNOME

Steps to Reproduce

  1. Launch the app
  2. Observe the icon is missing

Expected behavior: The icon is present

Actual behavior: The icon is not present

Reproduces how often: 100%

@picandocodigo
Copy link

This happens when running the app from source in development mode too. It could be some configuration that's missing in electron specific to Linux.

@shiftkey
Copy link
Owner

The fact this occurs in development mode as well as after installation probably means it's something related to the configuration values passed to electron-packager. And I did find this important note in the docs:

Linux: this option is not required, as the dock/window list icon is set via the icon option in the BrowserWindow constructor. Please note that you need to use a PNG, and not the OS X or Windows icon formats, in order for it to show up in the dock/window list. Setting the icon in the file manager is not currently supported.

Long story short, we should be able to fix this by setting icon as part of constructing the BrowserWindow instance here: https://github.com/desktop/desktop/blob/master/app/src/main-process/app-window.ts#L36-L62

We should only do this for Linux, which we can check at runtime using the __LINUX__ global.

@Croydon
Copy link

Croydon commented Dec 15, 2017

I can confirm the same issue for Fedora 26 with KDE.

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 a pull request may close this issue.

4 participants