Skip to content

Commit b93cdd9

Browse files
fix 04
1 parent 53b74e6 commit b93cdd9

9 files changed

Lines changed: 1529 additions & 349 deletions

File tree

usr/share/biglinux/browser_selector/app.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
"""BigLinux Browser Selector — Application class."""
1+
"""BigLinux Browser Selector — Application class.
2+
3+
Simplified version with only browser selection functionality.
4+
"""
25

36
from __future__ import annotations
47

usr/share/biglinux/browser_selector/main.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
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

48
from __future__ import annotations
59

usr/share/biglinux/browser_selector/pages.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
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:

usr/share/biglinux/browser_selector/scripts/browserInstall.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# No Zenity or GUI — the welcome app handles the UI.
66

77
browser="$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
1111
export LANGUAGE=C
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
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

0 commit comments

Comments
 (0)