Fix XDG browser defaults when BROWSER is set

This commit is contained in:
Kyunghyun Park committed 2026-07-24 03:26:49 +09:00
1 parent 39ca9135c4
commit e5924ef7d1
4 files changed
+4 -10

No files matched your search

+1 -4
View File
@@ -32,9 +32,6 @@ zen) desktop_id="zen.desktop"; name="Zen"; glyph=󰖟 ;;
;;
esac
xdg-settings set default-web-browser "$desktop_id"
xdg-mime default "$desktop_id" x-scheme-handler/http
xdg-mime default "$desktop_id" x-scheme-handler/https
xdg-mime default "$desktop_id" text/html
env -u BROWSER xdg-settings set default-web-browser "$desktop_id" || exit 1
omarchy-notification-send -g $glyph "$name is now the default browser"