feat(apps): gate rustdesk install behind remote_access prompt

This commit is contained in:
2026-08-03 17:09:33 +02:00
parent 797d2d1ba0
commit f446f19181
4 changed files with 115 additions and 96 deletions
+2 -3
View File
@@ -4,6 +4,7 @@
set -euo pipefail
warn() { echo ">>> [desktop] WARNING: $*" >&2; }
SYS="{{ .system | default "desktop" }}"
DISTRO_ID="{{ .chezmoi.osRelease.id | default "" }}"
@@ -22,8 +23,6 @@ if [ "$SYS" = "server" ]; then
exit 0
fi
warn() { echo ">>> [desktop] WARNING: $*" >&2; }
case "$DISTRO_ID" in
arch)
echo ">>> [desktop] arch, system=$SYS"
@@ -62,7 +61,7 @@ case "$DISTRO_ID" in
# Apply dconf defaults
DCONF_INI="$SRC/assets/dconf_gtk.ini"
if [ -f "$DCONF_INI" ]; then
echo ">>> [desktop] applying GNOME interface defaults (dconf load)"
echo ">>> [desktop] applying GNOME interface defaults"
dconf load /org/gnome/desktop/interface/ < "$DCONF_INI" \
|| warn "dconf load failed (DBus session may be unavailable)"
fi