1
0
Fork 0
mirror of https://github.com/aclist/dztui.git synced 2025-04-05 12:03:00 +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 Version=1.0
Type=Application Type=Application
Terminal=false Terminal=false
Exec=/home/deck/Downloads/dzgui.sh Exec=$HOME/.local/share/dzgui/dzgui.sh
Name=DZGUI Name=DZGUI
Comment=dzgui Comment=dzgui
Icon=$HOME/.local/share/dzgui/dzgui Icon=$HOME/.local/share/dzgui/dzgui
@ -166,6 +166,8 @@ freedesktop_dirs(){
mkdir -p $HOME/.local/share/dzgui mkdir -p $HOME/.local/share/dzgui
mkdir -p "$freedesktop_path" mkdir -p "$freedesktop_path"
#TODO: update url #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" img_url="https://raw.githubusercontent.com/aclist/dztui/testing/images"
for i in dzgui grid.png hero.png logo.png; do for i in dzgui grid.png hero.png logo.png; do
curl -s "$img_url/$i" > "$HOME/.local/share/dzgui/$i" curl -s "$img_url/$i" > "$HOME/.local/share/dzgui/$i"