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(electron/linux): 💊 outline icon is not shown in Ubuntu Dock #1327

Merged
merged 1 commit into from
May 23, 2022

Conversation

jyyi1
Copy link
Contributor

@jyyi1 jyyi1 commented May 20, 2022

Our app's icon is not shown in Ubuntu Dock (on Windows it is fine):

image

Similar issues are reported to electron-builder (e.g., electron-userland/electron-builder#2269). Though the issue is declared to be "fixed", it is actually not, people are still using the workaround of setting main windows's icon in electron code.

In this fix, I use the workaround mentioned above which is to forcibly set the window icon to the 64x64 icon image. The following images illustrate the icon displayed under 100%, 150% and 200% dpi settings:

image

image

image

I did not set the icon to 128x128 because it actually looks too sharp under the regular DPI setting (100%), here a comparison between 64x64 and 128x128 under 100% dpi (though in higher dpi's, the 128x128 looks better):

image

image

@jyyi1 jyyi1 changed the title fix(electron/linux): outline icon is not shown in Ubuntu Dock fix(electron/linux): 💊 outline icon is not shown in Ubuntu Dock May 20, 2022
@jyyi1 jyyi1 marked this pull request as ready for review May 20, 2022 20:06
@jyyi1 jyyi1 requested a review from a team as a code owner May 20, 2022 20:06
@jyyi1 jyyi1 requested a review from fortuna May 20, 2022 20:06
@jyyi1 jyyi1 self-assigned this May 20, 2022
@jyyi1 jyyi1 added the os/linux label May 20, 2022
Copy link
Collaborator

@fortuna fortuna left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for fixing this!

@jyyi1 jyyi1 merged commit 6088b7c into master May 23, 2022
@jyyi1 jyyi1 deleted the junyi/fix-ubuntu-docker-icon branch May 23, 2022 18:24
jyyi1 added a commit to Jigsaw-Code/outline-server that referenced this pull request Jun 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants