Skip to content

Instantly share code, notes, and snippets.

@jasonm23
Created April 25, 2024 02:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jasonm23/09dc9ed41588e67e3947d90c5f4ae727 to your computer and use it in GitHub Desktop.
Save jasonm23/09dc9ed41588e67e3947d90c5f4ae727 to your computer and use it in GitHub Desktop.
Emacs desktop application launcher file
[Desktop Entry]
Name=Emacs
GenericName=Text Editor
Comment=Edit text
MimeType=text/english;text/plain;text/x-makefile;text/x-c++hdr;text/x-c++src;text/x-chdr;text/x-csrc;text/x-java;text/x-moc;text/x-pascal;text/x-tcl;text/x-tex;application/x-shellscript;text/x-c;text/x-c++;
Exec=sh -c "if [ -n \\"\\$*\\" ]; then exec emacsclient -a emacs -n \\"\\$@\\"; else exec emacs; fi" dummy %F
Icon=emacs
Type=Application
Terminal=false
Categories=Development;TextEditor;
StartupNotify=true
StartupWMClass=Emacs
Keywords=Text;Editor;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment