Fix XDG browser defaults when BROWSER is set

This commit is contained in:
Kyunghyun Park
2026-07-24 03:26:49 +09:00
parent 39ca9135c4
commit e5924ef7d1
4 changed files with 4 additions and 10 deletions
+1 -1
View File
@@ -2128,7 +2128,7 @@ if command -v update-desktop-database >/dev/null 2>&1; then
update-desktop-database "$HOME/.local/share/applications" >/dev/null 2>&1 || true
fi
if command -v xdg-settings >/dev/null 2>&1; then
xdg-settings set default-web-browser chromium.desktop || true
env -u BROWSER xdg-settings set default-web-browser chromium.desktop || true
fi
if command -v xdg-mime >/dev/null 2>&1; then
xdg-mime default HEY.desktop x-scheme-handler/mailto || true