bugfix
This commit is contained in:
@@ -78,47 +78,7 @@ if [[ "${DE}" == "xfce" || "${DDE}" == "xfce" ]]; then
|
|||||||
else
|
else
|
||||||
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
|
||||||
|
fi
|
||||||
########################################
|
|
||||||
# Set Chromium as default browser
|
|
||||||
########################################
|
|
||||||
say_cyan "Setting Chromium as the default browser..."
|
|
||||||
|
|
||||||
# Update system default (for x-www-browser)
|
|
||||||
sudo update-alternatives --set x-www-browser /usr/bin/chromium || \
|
|
||||||
sudo update-alternatives --install /usr/bin/x-www-browser x-www-browser /usr/bin/chromium 200
|
|
||||||
|
|
||||||
# XFCE uses mimeapps.list to determine defaults for URLs
|
|
||||||
mkdir -p ~/.config
|
|
||||||
cat > ~/.config/mimeapps.list <<'EOF'
|
|
||||||
[Default Applications]
|
|
||||||
text/html=chromium.desktop
|
|
||||||
x-scheme-handler/http=chromium.desktop
|
|
||||||
x-scheme-handler/https=chromium.desktop
|
|
||||||
x-scheme-handler/about=chromium.desktop
|
|
||||||
x-scheme-handler/unknown=chromium.desktop
|
|
||||||
EOF
|
|
||||||
|
|
||||||
########################################
|
|
||||||
# Set Alacritty as default terminal
|
|
||||||
########################################
|
|
||||||
say_cyan "Setting Alacritty as default terminal emulator..."
|
|
||||||
|
|
||||||
# System-wide xfce helper
|
|
||||||
mkdir -p ~/.config/xfce4/helpers
|
|
||||||
cat > ~/.config/xfce4/helpers.rc <<'EOF'
|
|
||||||
TerminalEmulator=alacritty
|
|
||||||
WebBrowser=chromium
|
|
||||||
EOF
|
|
||||||
|
|
||||||
# Also set using xfconf if available
|
|
||||||
if command -v xfconf-query >/dev/null 2>&1; then
|
|
||||||
xfconf-query -c xfce4-session -p /sessions/Failsafe/Client0_Command -t string -s "alacritty" --create || true
|
|
||||||
xfconf-query -c xfce4-session -p /sessions/Failsafe/Client1_Command -t string -s "chromium" --create || true
|
|
||||||
fi
|
|
||||||
|
|
||||||
say_green "Chromium set as default browser and Alacritty set as default terminal."
|
|
||||||
fi
|
|
||||||
|
|
||||||
# End of script
|
# End of script
|
||||||
say_green "Full setup completed."
|
say_green "Full setup completed."
|
||||||
|
|||||||
Reference in New Issue
Block a user