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

Explicitly create directory in $HOME

This commit is contained in:
aclist 2022-08-06 07:10:14 +09:00
parent 64e28e1372
commit 0cf150fe9e

View file

@ -155,22 +155,22 @@ cat <<-END
Version=1.0 Version=1.0
Type=Application Type=Application
Terminal=false Terminal=false
Exec=$HOME/.local/share/dzgui/dzgui.sh Exec=$HOME/dzgui/dzgui.sh
Name=DZGUI Name=DZGUI
Comment=dzgui Comment=dzgui
Icon=$HOME/.local/share/dzgui/dzgui Icon=$HOME/dzgui/dzgui
Categories=Game Categories=Game
END END
} }
freedesktop_dirs(){ freedesktop_dirs(){
mkdir -p $HOME/.local/share/dzgui mkdir $HOME/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 curl -s "$version_url" > $HOME/dzgui/dzgui.sh
chmod +x "$HOME/.local/share/dzgui/dzgui.sh" chmod +x "$HOME/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/dzgui/$i"
done done
write_desktop_file > "$freedesktop_path/dzgui.desktop" write_desktop_file > "$freedesktop_path/dzgui.desktop"
write_desktop_file > "$HOME/Desktop/dzgui.desktop" write_desktop_file > "$HOME/Desktop/dzgui.desktop"