Scapegoat TIL

TIL - Installing AppImages and running in rofi

AppImages are portable Linux applications that don't require traditional installation. However, getting them to appear in your application launcher requires a few simple steps.

The Process

  1. First, make your AppImage executable:
chmod +x ~/.local/apps/your-app.AppImage
  1. Create a desktop entry file in ~/.local/share/applications/:
cat <<EOF > ~/.local/share/applications/app-name.desktop
[Desktop Entry]
Type=Application
Name=App Name
Exec=/path/to/your.AppImage
Icon=app-icon
Categories=Category;
Terminal=false
EOF
  1. Update the desktop database:
update-desktop-database ~/.local/share/applications

Application Launcher Updates

Different launchers handle new entries differently:

Real Example

Here's a practical example using FreeCAD:

chmod +x ~/.local/apps/FreeCAD_1.0.0-conda-Linux-x86_64-py311.AppImage

cat <<EOF > ~/.local/share/applications/freecad.desktop
[Desktop Entry]
Type=Application
Name=FreeCAD
Exec=/home/manuel/.local/apps/FreeCAD_1.0.0-conda-Linux-x86_64-py311.AppImage
Icon=freecad
Categories=Graphics;Science;Engineering;
Terminal=false
EOF