Skip to content

Instantly share code, notes, and snippets.

@Naereen
Created February 7, 2017 14:43
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save Naereen/39d75202fc37d540571bd8266d51fc5e to your computer and use it in GitHub Desktop.
Save Naereen/39d75202fc37d540571bd8266d51fc5e to your computer and use it in GitHub Desktop.
Marp.desktop file to add a system shortcut for Marp (https://yhatt.github.io/marp/)
#!/usr/bin/env xdg-open
[Desktop Entry]
Type=Application
Name=Marp
GenericName=Marp - Markdown Presentation Editor
Icon=/home/lilian/.local/Marp/marp.png
Exec=/home/lilian/.local/Marp/Marp %f
Categories=Office
Terminal=false
@Naereen
Copy link
Author

Naereen commented Feb 7, 2017

  1. Download it,
  2. Change the location of your local installation of Marp, for the binary file, and maybe download the icon and save it as marp.png
  3. Test it with: $ desktop-file-validate Marp.desktop
  4. If no complaint, then install it with: $ sudo desktop-file-install Marp.desktop

Only on Linux, following the FreeDesktop standards.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment