Last active
June 17, 2022 03:16
-
-
Save ompugao/d98780de08f3e71caffbfc0cd8522e6e to your computer and use it in GitHub Desktop.
Logseq desktop
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl https://gist.githubusercontent.com/ompugao/d98780de08f3e71caffbfc0cd8522e6e/raw/fcf708f6ef9d98ed924c4a4c8485c84c12aae7b3/setup.sh | /bin/bash |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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}} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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