FreeCAD / FreeCAD-Bundle

Stand-alone repo to Build and Deploy installable FreeCAD images. Do not open general FreeCAD issues here.
https://freecad.org
GNU Lesser General Public License v2.1
312 stars 63 forks source link

.AppImage is missing FreeCad Icon (no icon displayed when running) #228

Closed AndKe closed 5 days ago

AndKe commented 4 months ago

Please look to the open source project PrusaSlicer to see how to add the icon to AppImage, if in doubt.

maxwxyz commented 4 months ago

@AndKe is still present in the current weekly?

AndKe commented 4 months ago

@maxwxyz I just tested FreeCAD_weekly-builds-37543-conda-Linux-x86_64-py311.AppImage The issue remains.

maxwxyz commented 4 months ago

@adrianinsaval FYI

adrianinsaval commented 4 months ago

What icon are we talking about?

maxwxyz commented 4 months ago

I guess the weekly AppImage icon for the application

AndKe commented 4 months ago

I am talking about the appicon in the "task area" when the application is running. When FreeCad AppImage is running from an AppImage, then it is represented by a default "gear" icon. When other AppImages run, they display their own icons.

maxwxyz commented 4 months ago

A screenshot would help but I guess you mean that how it is on my Windows: grafik

AndKe commented 4 months ago

image

A part of the vertical "taskbar/Shortcut" bar on Ubuntu (apps with a orange dot are running) you see "tmm" , then the running apps: a PDF reader, then PrusaSlicer , then FreeCad (the gear icon) - it's default for iconless-apps.

adrianinsaval commented 4 months ago

what's your system and are you running wayland or x11? If this is wayland, sorry this is a limitation of wayland and there's nothing we can do when shipping as an appimage. You can create a org.freecad.FreeCAD.desktop file with the correct icon info at ~/.local/share/applications and copy the icon to ~/.local/share/icons to workaround this.

AndKe commented 4 months ago

I am using x11 (mostly due to xdotools) I do already have a .desktop icon, (which works for the shortcut to the app(which has an icon) - but does not help once the app is started) but unlike (for example) PrusaSlicer AppImage, FreeCAD 's appimage is missing the necessary information to make it display it's own icon when running.

AndKe commented 4 months ago

Also: your post above me helped me because I discovered that when moving the icon to ~/.local/share/icons , and using just a filename in the deskop file, Icon=FreeCAD.png (rather than full path to other location) works fine. BTW: The behavior is the same for x11 and Wayland, both works now. The main difference is still: Other .AppImage files dispålay their icon instantly (on both desktop managers) , but FreeCAD AppImage does not.
Please make it work :)

adrianinsaval commented 4 months ago

huh, that's weird I never experienced this in x11

adrianinsaval commented 2 months ago

I cannot reproduce this problem, I can only assume it is an issue on your system. Please let me know if this can be reproduced on a clean system on x11, otherwise I'll close this issue

jose1968us commented 2 months ago

If you check the .desktop file that is in the /tmp/.mount_freecad file generated when running freecad you will see that the reference to the icon is missing the file extension (.svg)

adrianinsaval commented 1 month ago

If you check the .desktop file that is in the /tmp/.mount_freecad file generated when running freecad you will see that the reference to the icon is missing the file extension (.svg)

this should not be a problem, consider reporting this bug to your DE instead