Application Icon not shown on Gnome dock for AppImage #15
Labels
No Label
blocked by upstream
bug
duplicate
help wanted
invalid
kind/feature
kind/ux
question
wontfix
No Milestone
No Assignees
3 Participants
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: vikunja/desktop#15
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The generic Gnome application icon is used for vikunja-desktop with both the Appimage and the Pacman install on manajaro Gnome.
I was able to get this working by downloading the svg version of the logo.svg from Github
And renaming it and saving it to the hicolor/scalable folder:
then rebuilding the icon cache:
I would suggest packaging the svg icon as well as the png.
Looks like this isn't possible at the moment with electron: https://github.com/electron/electron/issues/9642
A workaround might be adding all the different sizes of icon in png format. I can look into that.
Do you want to send a PR?
I have forked. I'm slow though, gimme time :)
Got it working using an .icns format file and explicitly linking it in package.json.
I'll do a pull request tomorrow when I'm more awake.
Fix suggested by electron-builder docs and this plus following electron-builder issue comments
For the record. I converted the icon at
desktop/build/icon.png
to icons format using the icnsify binary, like so:Tested build and pacman package install on manjaro Gnome.
PR is merged, closing.
Is this expected to be fixed? I'm still seeing the generic icon running the AppImage on Manjaro Gnome.
System
Vikunja Desktop-0.16.0
5.12.2-1-MANJARO x86_64 GNU/Linux
Gnome 40.1.0
@jrabensc It is fixed, you should upgrade.
@jrabensc installed the AppImage, I only built and tested the pacman package for the fix.
Just downloaded the v17 pacman package and updated with
and the icon is present in the gnome dash (I don't use dash-to-dock extension).
@konrad The appimage may require different action. Quite a lot of AppImages I download and install seem make no effort to add the application.Desktop launch file or icons to the system...
@adrinux But it looks like @jrabensc is using 0.16 which does not have the fix. I'm not sure about the appimage, I'd just imagine electron builder would figure out all these quirks between formats and such.
Can confirm the is no icon with the AppImage - it would need to offer desktop integration on first run and copy the launcher plus icons into place.
(Also found I have an inconsistent pacman db from installing and removing the package I built for testing. Everything works fine though.)
I should probably look at creating an AUR package for Vikunja-desktop.
@konrad Ah, yes I didn't read properly. He should upgrade - but it still wont have desktop integration, no icon, no launcher. I checked with the .17 appimage.
@jrabensc Remove the AppImage and install via the pacman package would be the workaround for now.
I think I've found it: The electon-builder docs say explicitly they don't manage icons and such for appimages. Not sure if I've overlooked something or if that's not something I could do on the Vikunja side as the distributor of the appimage.
Maybe it'd be worth a try to add a
desktop
entry to the builder configuration?Thanks for your help. I can confirm that the .17 AppImage is missing the icon in the Gnome overview and dash, but its visible in the app grid.
Maybe you could take a look at this? https://github.com/standardnotes/desktop
They are using an Electron AppImage as well, and the icon is working without any issues.
@jrabensc How did you install Standard Notes?
I ask because if you installed say, standardnotes-bin from the AUR, the PKGBUILD installs the AppImage but also deals with installing the .desktop file and icon.
The AppImage docs seem more helpful than the electron builder docs.
@konrad There is a desktop.tpl at
node_modules/app-builder-lib/templates/linux
but that currently doesn't include an icon definition, nor do the before and after install scripts there deal with an icon.It's not clear to me how you modify those module templates for your own electron build...of if you can.
@adrinux I installed the Standard Notes AppImage using AppImageLauncher
However, when I download the AppImage again and just simply run it, the icon is not shown as well.
Found this and this. So in theory, this should work if we'd add an
icon
property to thelinux
setting in the package.json.Anyone wants to send a PR?
Application Icon not shown on Gnome dockto Application Icon not shown on Gnome dock for AppImage