From 19b027bc0b288cf18bf16115f76a3b19cc6d6798 Mon Sep 17 00:00:00 2001 From: ericbsd Date: Wed, 10 Dec 2025 17:33:12 -0400 Subject: [PATCH] Fix .xinitrc path and improve UI visibility in installation - Change .xinitrc path from `/usr/home/ghostbsd/` to `/home/ghostbsd/` for correct FreeBSD home directory handling - Fix indentation of .xinitrc writelines() calls to be inside the file context manager (prevents potential file write errors) - Add explicit label2.show() call in InstallWindow to ensure progress label visibility during installation These changes ensure proper file handling in "Try Live" mode and improve installation UI feedback reliability. --- install_station/install.py | 1 + install_station/interface_controller.py | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/install_station/install.py b/install_station/install.py index faa3fc6..846a57b 100644 --- a/install_station/install.py +++ b/install_station/install.py @@ -112,6 +112,7 @@ def __init__(self): label2.set_line_wrap(True) # label2.set_max_width_chars(10) label2.set_alignment(0.0, 0.2) + label2.show() hbox2 = Gtk.Box(orientation=Gtk.Orientation.HORIZONTAL, homogeneous=False, spacing=0, name="TransBox") hbox2.show() hbox.pack_start(hbox2, True, True, 0) diff --git a/install_station/interface_controller.py b/install_station/interface_controller.py index 1c08a7b..9e3e788 100644 --- a/install_station/interface_controller.py +++ b/install_station/interface_controller.py @@ -208,10 +208,10 @@ def next_page(cls, _widget: Gtk.Button) -> None: InstallationData.keyboard_variant, InstallationData.keyboard_model_code ) - with open('/usr/home/ghostbsd/.xinitrc', 'w') as xinitrc: + with open('/home/ghostbsd/.xinitrc', 'w') as xinitrc: xinitrc.writelines('gsettings set org.mate.SettingsDaemon.plugins.housekeeping active true &\n') - xinitrc.writelines('gsettings set org.mate.screensaver lock-enabled false &\n') - xinitrc.writelines('exec ck-launch-session mate-session\n') + xinitrc.writelines('gsettings set org.mate.screensaver lock-enabled false &\n') + xinitrc.writelines('exec ck-launch-session mate-session\n') Gtk.main_quit() elif page == 4: Button.show_back()