Skip to content

Instantly share code, notes, and snippets.

@ompugao
Last active June 17, 2022 03:16
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 ompugao/d98780de08f3e71caffbfc0cd8522e6e to your computer and use it in GitHub Desktop.
Save ompugao/d98780de08f3e71caffbfc0cd8522e6e to your computer and use it in GitHub Desktop.
Logseq desktop
curl https://gist.githubusercontent.com/ompugao/d98780de08f3e71caffbfc0cd8522e6e/raw/fcf708f6ef9d98ed924c4a4c8485c84c12aae7b3/setup.sh | /bin/bash
[Desktop Entry]
Version=0.7.2
Name=Logseq
# Only KDE 4 seems to use GenericName, so we reuse the KDE strings.
# From Ubuntu's language-pack-kde-XX-base packages, version 9.04-20090413.
GenericName=Logseq
# Gnome and KDE 3 uses Comment.
Comment=Logseq Note Taking app
Exec={{EXECPATH}}
StartupNotify=true
Terminal=false
Icon={{HOME}}/.local/share/applications/logseq.png
Type=Application
Categories=Network
MimeType=application/pdf;text/html;text/xml;
Actions=new-window;
[Desktop Action new-window]
Name=New Window
Exec={{EXECPATH}}
#!/bin/bash
wget https://gist.githubusercontent.com/ompugao/d98780de08f3e71caffbfc0cd8522e6e/raw/4bbafdf27d3a490941f204796224244bbcce2d60/logseq.desktop.in -O $HOME/.local/share/applications/logseq.desktop
installdir=$HOME/install/bin
filename=$(ls ${installdir} |grep -i ^logseq|head -n1)
sed -i -e "s!{{EXECPATH}}!${installdir}/${filename}!g" $HOME/.local/share/applications/logseq.desktop
sed -i -e "s!{{HOME}}!${HOME}!g" $HOME/.local/share/applications/logseq.desktop
wget https://avatars.githubusercontent.com/u/63385289?s=200 -O $HOME/.local/share/applications/logseq.png
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment