How I integrated AppImages into my Linux desktop
intro
While I try to avoid AppImages in general, in the past I have needed to run some every once in a while. This is how I integrated the AppImages into my Linux desktop for easier use.
the issue
I had AppImages, but no .desktop entries, so I would have to go back to the directory I saved them in every time I wanted to launch the app.
solution
- Put all AppImages in
~/AppImages/
or another directory of your choice. We’ll need this later when we modify the .desktop files. - Extract the AppImage with
./<filename>.AppImage --appimage-extract
Use
--appimage-help
for more info about other commandline flags. - Find the
.desktop
file in thesquashfs-root
folder created by the extraction. - Edit the
.desktop
to execute the AppImage from the correct directory:/home/myuser/AppImages/file.AppImage <other arguments>
(or/var/home/
if on Fedora Atomic as I am.) - Run
desktop-file-install --dir=$HOME/.local/share/applications ~/<app>.desktop
- Run
update-desktop-database ~/.local/share/applications
(This will work with all custom .desktop entries, not just for AppImages) - An icon for the app must be present in your chosen icon theme already, or you won’t have a desktop icon automatically. You can get the icon manually by grabbing it from the extracted AppImage from earlier and placing it in
~/.local/share/icons
.
helpful links: