-
Notifications
You must be signed in to change notification settings - Fork 146
App icon on linux broken #109
Comments
Thanks a lot @OiYouYeahYou for reporting this bug. |
I'm looking at the code now. Do you have a raw SVG file I can use to convert into the relevant formats directly? |
Just PNG sorry :( |
You can crop this image : https://github.com/lauthieb/code-notes/blob/master/src/renderer/assets/img/code-notes-logo-black-full.png |
Is this still an issue? I used lubuntu, and icon works fine on that one, I don't have ubuntu VM and I don't like the distro lol. Can you please go to ~/.local/share/applications or whatever path your .desktop file is, and show us the contents of that files. It should be called appimagekit-code-notes.desktop I believe this is an electron issue as per the two issues below: Can you try on
Then do a build test, and let us know if it worked, some users on those thread said yes other no:
|
I cloned a fresh copy of master and made the suggested changes. The icon still doesn't work unfortunately diff --git a/src/main/index.js b/src/main/index.js
index cc380f6..f244bb0 100644
--- a/src/main/index.js
+++ b/src/main/index.js
@@ -1,4 +1,5 @@
import { app, BrowserWindow, Menu } from 'electron'; // eslint-disable-line
+import { join } from 'path';
/**
* Set `__static` path to static files in production
@@ -27,6 +28,7 @@ function createWindow() {
width: 1160,
minHeight: 500,
minWidth: 900,
+ icon: join(__dirname, 'build/icons/255x256.png'),
});
mainWindow.loadURL(winURL); @kodaman2 as an aside: lubuntu, ubuntu, kubuntu and xubuntu are all the same distribution. The only major difference is which |
If is all the same, then I dunno, it works perfect on my lubuntu. Btw you have a typo on the diff you pasted. 255x256.png, might want to to try 256x256.png |
The typo makes no difference :( |
Any errors on console? Can you include your desktop file contents. Perhaps what you mentioned about desktop options has something to do with it. Link below edited the desktop file for gnome. I'll have to check what I'm running I've never gotten into the details of different desktops tbh. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Describe the bug
On Ubuntu the app icon is either not set or missing
To Reproduce
Steps to reproduce the behaviour:
Screenshots
Desktop (please complete the following information):
Additional context
Willing to accept PR? It's often an easy fix
The text was updated successfully, but these errors were encountered: