From e7f61e91204e0e156d8869b4b766048db9a866a7 Mon Sep 17 00:00:00 2001 From: Tim Peters Date: Sun, 14 Aug 2022 22:46:38 +0200 Subject: [PATCH] Bugfix: Desktop File Erstellung --- logseq-install.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/logseq-install.sh b/logseq-install.sh index b102f9f..353e234 100755 --- a/logseq-install.sh +++ b/logseq-install.sh @@ -67,9 +67,10 @@ getLatest() { } createDesktop() { - wget https://raw.githubusercontent.com/logseq/logseq/master/resources/icons/logseq.png -qO ${HOME}/.local/share/applications/logseq.png + local FILE_PNG=${HOME}/.local/share/applications/logseq.png + [ -e $FILE_PNG ] || wget https://raw.githubusercontent.com/logseq/logseq/master/resources/icons/logseq.png -qO $FILE_PNG - cat >> ~/.local/share/applications/logseq.desktop <<-EOF + cat > ~/.local/share/applications/logseq.desktop <<-EOF [Desktop Entry] Encoding=UTF-8 Name=Logseq