2023-11-22 11:29:04 +05:00
|
|
|
#!/bin/bash
|
|
|
|
|
2023-11-23 14:05:12 +05:00
|
|
|
sleep 15
|
2023-11-23 01:03:12 +05:00
|
|
|
|
2023-11-23 01:53:21 +05:00
|
|
|
browser="firefox.desktop"
|
|
|
|
|
|
|
|
xdg-settings set default-web-browser "$browser"
|
|
|
|
|
2023-11-23 02:19:52 +05:00
|
|
|
notify-send -t 5000 -a "Default browser is" "$browser" "$(date '+%Y.%m.%d %H:%M:%S')"
|
2023-11-22 11:29:04 +05:00
|
|
|
|
|
|
|
if [ "$(whoami)" != "liveuser" ]; then
|
|
|
|
sleep 5
|
2023-11-23 01:53:21 +05:00
|
|
|
rm "$HOME/.config/autostart/set-default-web-browser.desktop"
|
2023-11-29 03:04:55 +05:00
|
|
|
rm "$HOME/.local/bin/set-default-web-browser.sh"
|
2023-11-22 11:29:04 +05:00
|
|
|
fi
|