From 64e28e13725f78972e31a9818f66cb638cc1eb2e Mon Sep 17 00:00:00 2001 From: aclist Date: Sat, 6 Aug 2022 06:52:52 +0900 Subject: [PATCH] Do not hardcode freedesktop dir --- dzgui.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dzgui.sh b/dzgui.sh index a9c633d..7db3020 100755 --- a/dzgui.sh +++ b/dzgui.sh @@ -155,7 +155,7 @@ cat <<-END Version=1.0 Type=Application Terminal=false -Exec=/home/deck/Downloads/dzgui.sh +Exec=$HOME/.local/share/dzgui/dzgui.sh Name=DZGUI Comment=dzgui Icon=$HOME/.local/share/dzgui/dzgui @@ -166,6 +166,8 @@ freedesktop_dirs(){ mkdir -p $HOME/.local/share/dzgui mkdir -p "$freedesktop_path" #TODO: update url + curl -s "$version_url" > $HOME/.local/share/dzgui/dzgui.sh + chmod +x "$HOME/.local/share/dzgui/dzgui.sh" img_url="https://raw.githubusercontent.com/aclist/dztui/testing/images" for i in dzgui grid.png hero.png logo.png; do curl -s "$img_url/$i" > "$HOME/.local/share/dzgui/$i"