1
0
Fork 0
mirror of https://github.com/aclist/dztui.git synced 2025-04-05 03:53:01 +02:00

Do not hardcode freedesktop dir

This commit is contained in:
aclist 2022-08-06 06:52:52 +09:00
parent 2671e87bc9
commit 64e28e1372

View file

@ -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"