This commit is contained in:
[yuri]
2025-11-10 17:12:39 +01:00
parent 3b042feb7a
commit 1a7f5078d9

View File

@@ -85,10 +85,18 @@ if [[ "${DE}" == "xfce" || "${DDE}" == "xfce" ]]; then
say_yellow "xfconf-query not found — skipping XFCE font config (will apply at first login)." say_yellow "xfconf-query not found — skipping XFCE font config (will apply at first login)."
fi fi
# Default Browser = Chromium # System-wide browser default (if running as root)
if command -v chromium >/dev/null 2>&1; then if [ "$(id -u)" -eq 0 ]; then
xdg-settings set default-web-browser chromium.desktop 2>/dev/null || true if command -v chromium >/dev/null 2>&1; then
update-alternatives --set x-www-browser "$(command -v chromium)" || true update-alternatives --set x-www-browser /usr/bin/chromium || true
fi
else
# Per-user default browser using xdg-settings
if command -v chromium >/dev/null 2>&1; then
xdg-settings set default-web-browser chromium.desktop 2>/dev/null || true
fi
fi
say_green "XFCE defeault browser set to chromium!" say_green "XFCE defeault browser set to chromium!"
fi fi
fi fi