13 lines
680 B
Bash
Executable file
13 lines
680 B
Bash
Executable file
#!/usr/bin/env bash
|
|
# Install SilverBullet XFCE launcher on clementine (on-box). No Freigabe (user home).
|
|
set -euo pipefail
|
|
SRC="$(cd "$(dirname "$0")" && pwd)/silverbullet.desktop"
|
|
APPDIR="${HOME}/.local/share/applications"
|
|
DESK="${HOME}/Desktop"
|
|
mkdir -p "$APPDIR" "$DESK"
|
|
install -m 0644 "$SRC" "$APPDIR/silverbullet.desktop"
|
|
install -m 0644 "$SRC" "$DESK/silverbullet.desktop"
|
|
# refresh menu cache if available
|
|
command -v update-desktop-database >/dev/null && update-desktop-database "$APPDIR" || true
|
|
echo "STATUS=ok DESKTOP=$APPDIR/silverbullet.desktop SHORTCUT=$DESK/silverbullet.desktop"
|
|
echo "TIP=open https://silverbullet.hacktivism.ch then browser Install app for PWA"
|