[go: up one dir, main page]

Skip to content

Commit

Permalink
install-linux.sh - ensure $HOME/.local/share/{applications,icons} d…
Browse files Browse the repository at this point in the history
…irs exist
  • Loading branch information
xfzv authored and nkanaev committed Mar 19, 2024
1 parent 9d5b8d9 commit 5f606b1
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions etc/install-linux.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
#!/bin/bash

if [[ ! -d "$HOME/.local/share/applications" ]]; then
mkdir -p "$HOME/.local/share/applications"
fi

cat >"$HOME/.local/share/applications/yarr.desktop" <<END
[Desktop Entry]
Name=yarr
Expand All @@ -9,6 +13,10 @@ Type=Application
Categories=Internet;
END

if [[ ! -d "$HOME/.local/share/icons" ]]; then
mkdir -p "$HOME/.local/share/icons"
fi

cat >"$HOME/.local/share/icons/yarr.svg" <<END
<?xml version="1.0" encoding="UTF-8"?>
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-anchor-favicon">
Expand Down

0 comments on commit 5f606b1

Please sign in to comment.