Make Battle.net launcher installer-only
This commit is contained in:
@@ -64,7 +64,7 @@ EOF
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
mkdir -p "$HOME/.local/share/applications"
|
mkdir -p "$HOME/.local/share/applications"
|
||||||
install -m 644 "$OMARCHY_PATH/applications/battlenet.desktop" \
|
install -m 644 "$OMARCHY_PATH/default/applications/battlenet.desktop" \
|
||||||
"$HOME/.local/share/applications/battlenet.desktop"
|
"$HOME/.local/share/applications/battlenet.desktop"
|
||||||
update-desktop-database "$HOME/.local/share/applications" 2>/dev/null || true
|
update-desktop-database "$HOME/.local/share/applications" 2>/dev/null || true
|
||||||
|
|
||||||
|
|||||||
@@ -75,6 +75,9 @@ etc/fastfetch/config.jsonc ──► omarchy-settings /etc/fastfetch/con
|
|||||||
|
|
||||||
applications/*.desktop ──► omarchy-settings /etc/skel/.local/share/applications/
|
applications/*.desktop ──► omarchy-settings /etc/skel/.local/share/applications/
|
||||||
/usr/share/omarchy/applications/
|
/usr/share/omarchy/applications/
|
||||||
|
default/applications/battlenet.desktop
|
||||||
|
──► omarchy-settings /usr/share/omarchy/default/applications/
|
||||||
|
(installer-only launcher template)
|
||||||
applications/icons/* ──► omarchy-settings /usr/share/icons/hicolor/{48,256,scalable}/apps/
|
applications/icons/* ──► omarchy-settings /usr/share/icons/hicolor/{48,256,scalable}/apps/
|
||||||
|
|
||||||
etc/** ──► omarchy-settings /etc/** (drop-ins we own outright)
|
etc/** ──► omarchy-settings /etc/** (drop-ins we own outright)
|
||||||
|
|||||||
@@ -0,0 +1,14 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
set -euo pipefail
|
||||||
|
|
||||||
|
source "$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" && pwd)/base-test.sh"
|
||||||
|
|
||||||
|
install_script="$ROOT/bin/omarchy-install-gaming-battlenet"
|
||||||
|
|
||||||
|
[[ ! -f $ROOT/applications/battlenet.desktop ]] || fail "Battle.net launcher is not part of default application refresh"
|
||||||
|
[[ -f $ROOT/default/applications/battlenet.desktop ]] || fail "Battle.net launcher template is available to the installer"
|
||||||
|
grep -F '$OMARCHY_PATH/default/applications/battlenet.desktop' "$install_script" >/dev/null ||
|
||||||
|
fail "Battle.net installer installs the launcher from the installer-only template"
|
||||||
|
|
||||||
|
pass "Battle.net launcher is only installed by the Battle.net installer"
|
||||||
Reference in New Issue
Block a user