16 lines
362 B
Bash
Executable File
16 lines
362 B
Bash
Executable File
#!/bin/bash
|
|
|
|
sleep 15
|
|
|
|
browser="firefox.desktop"
|
|
|
|
xdg-settings set default-web-browser "$browser"
|
|
|
|
notify-send -t 5000 -a "Default browser is" "$browser" "$(date '+%Y.%m.%d %H:%M:%S')"
|
|
|
|
if [ "$(whoami)" != "liveuser" ]; then
|
|
sleep 5
|
|
rm "$HOME/.config/autostart/set-default-web-browser.desktop"
|
|
rm "$HOME/.local/userbin/set-default-web-browser.sh"
|
|
fi
|