Creating .desktop files

First published:

Last Edited:

Number of edits:

This is a quick tutorial on how to create .desktop files for AppImage programs so that you can have a shortcut in the activities panel, can pin it to the sidebar, etc, on gnome -based computers.

I use Zettlr as an example, but it works with any other program.

  1. Create a file like zettlr.desktop in ~/.local/share/application with the following::
[Desktop Entry]
  1. To know the StartupWMClass, you need to run xprop WM_CLASS and click on the window. This is very important, or Ubuntu fails at knowing that it is actually a window running
  2. To extract the icon from man AppImage: ./Zettlr.AppImage --appimage-extract Where to put it is not that important.

Tags: #linux #AppImage #desktop-shortcuts #ubuntu


These are the other notes that link to this one.


Share your thoughts on this note
Aquiles Carattino
Aquiles Carattino
This note you are reading is part of my digital garden. Follow the links to learn more, and remember that these notes evolve over time. After all, this website is not a blog.
© 2021 Aquiles Carattino
This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License
Privacy Policy