2 Commits

Author SHA1 Message Date
Eric Turgeon 917823091e Merge pull request #12 from ghostbsd/fix/xinitrc-path-and-ui
Fix .xinitrc path and improve UI visibility in installation
2025-12-10 17:37:59 -04:00
ericbsd 19b027bc0b 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.
2025-12-10 17:33:12 -04:00
2 changed files with 4 additions and 3 deletions
+1
View File
@@ -112,6 +112,7 @@ class InstallWindow:
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)
+3 -3
View File
@@ -208,10 +208,10 @@ class Interface:
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()