I can't seem to create a .desktop
launcher for the latest FreeCAD AppImage.
I first tried answer by @UriHerrera but it did not work. Then I included the answer by @vanadium but it did not work too. When I press Super+A
keys, I can't see the FreeCAD icon there. Neither does FreeCad icon appears when I pressed the Super
key and typed Freecad
in search bar. I also tried refreshing gnome-shell by pressing Alt+F2
followed by pressing r
and Enter
but this action did not help either.
Can you tell me my mistake?
Summarising my actions:
I downloaded
FreeCAD-0.20
from https://www.freecadweb.org/index.php into~/.local/bin
.Executed:
$ chmod +x ~/.local/bin/FreeCAD-0.20.0-Linux-x86_64.AppImage $ ~/.local/bin/FreeCAD-0.20.0-Linux-x86_64.AppImage --appimage-extract $ cp ~/.local/bin/squashfs-root/freecad_weekly.desktop ~/.local/share/applications/freecad_weekly.desktop $ mkdir ~/.local/share/icons/FreeCAD/ $ cp ~/.local/bin/squashfs-root/freecad_weekly.svg ~/.local/share/icons/FreeCAD/freecad_weekly.svg $ xprop | grep WM_CLASS WM_CLASS(STRING) = "gnome-terminal-server", "Gnome-terminal" $ gedit ~/.local/share/applications/freecad_weekly.desktop
Changed
[Desktop Entry] Version=1.0 Name=FreeCAD Weekly Exec=AppRun Icon=freecad_weekly Type=Application Categories=Engineering; Comment=Feature based Parametric Modeler Terminal=false StartupNotify=true NoDisplay=false MimeType=application/x-extension-fcstd;
to
[Desktop Entry] Version=1.0 Name=FreeCAD Weekly Exec=$HOME/.local/bin/FreeCAD-0.20.0-Linux-x86_64.AppImage Icon=$HOME/.local/share/icons/FreeCAD/freecad_weekly.svg StartupWMClass="gnome-terminal-server","Gnome-terminal" Type=Application Categories=Engineering; Comment=Feature based Parametric Modeler Terminal=false StartupNotify=true NoDisplay=false MimeType=application/x-extension-fcstd;
Also tried StartupWMClass=gnome-terminal-server Gnome-terminal
but this did not work too.
Update: Why does the Freecad icon not show properly?
Outcome from updating ~/.local/share/applications/freecad_weekly.desktop
to:
[Desktop Entry]
Version=1.0
Name=FreeCAD Weekly
Exec=freecad
Icon=freecad_weekly
Type=Application
Categories=Engineering;
Comment=Feature based Parametric Modeler
Terminal=false
StartupNotify=true
NoDisplay=false
MimeType=application/x-extension-fcstd;
StartupWMClass="gnome-terminal-server","Gnome-terminal"
, the "freecad" icon appears. Is this statement still needed? – Sun Bear Jul 17 '22 at 15:47~/.local/share/icons/
and not inside a subdir. I should have done$ cp ~/.app/squashfs-root/freecad_weekly.svg ~/.local/share/icons/freecad_weekly.svg
. – Sun Bear Jul 17 '22 at 18:51