File tree Expand file tree Collapse file tree
usr/share/biglinux/browser_selector Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- """BigLinux Browser Selector — Application class."""
1+ """BigLinux Browser Selector — Application class.
2+
3+ Simplified version with only browser selection functionality.
4+ """
25
36from __future__ import annotations
47
Original file line number Diff line number Diff line change 11#!/usr/bin/env python3
2- """BigLinux Browser Selector — Entry point."""
2+
3+ """BigLinux Browser Selector — Entry point.
4+
5+ Simplified version with only browser selection functionality.
6+ """
37
48from __future__ import annotations
59
Original file line number Diff line number Diff line change 11- title : " Choose your default browser"
2- subtitle : " Select and install the web browser of your choice ."
2+ subtitle : " Set your default browser."
33 icon : " internet-web-browser-symbolic"
44 page_type : " browsers"
55 actions :
6-
76 - label : " Brave"
87 package : " brave"
98 variants :
Original file line number Diff line number Diff line change 55# No Zenity or GUI — the welcome app handles the UI.
66
77browser=" $1 "
8- log=" /var/log/biglinux-browser-selector .log"
8+ log=" /var/log/biglinux-welcome .log"
99
1010# Force English output so progress parsing works regardless of system locale
1111export LANGUAGE=C
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+
3+ # Detect the current desktop environment
4+ if pgrep -x plasmashell > /dev/null; then
5+ # KDE Plasma
6+ # Try systemsettings first (more stable), fallback to alternatives
7+ systemsettings kcm_kscreen 2> /dev/null || systemsettings5 kcm_screen 2> /dev/null || kcmshell6 kcm_kscreen 2> /dev/null || kscreen-doctor-settings 2> /dev/null
8+ elif pgrep -x gnome-shell > /dev/null; then
9+ # GNOME
10+ gnome-control-center display 2> /dev/null
11+ elif pgrep -x xfce4-session > /dev/null; then
12+ # XFCE
13+ xfce4-display-settings 2> /dev/null || arandr 2> /dev/null
14+ elif pgrep -x cinnamon-session > /dev/null; then
15+ # Cinnamon
16+ cinnamon-settings display 2> /dev/null
17+ else
18+ # Generic fallback
19+ if command -v arandr > /dev/null; then
20+ arandr
21+ elif command -v xrandr > /dev/null; then
22+ echo " Use 'xrandr' for display settings via terminal"
23+ else
24+ echo " Could not open display settings"
25+ fi
26+ fi
You can’t perform that action at this time.
0 commit comments