added code to update .xinitrc when choosing try livecd

This commit is contained in:
ericbsd
2021-10-07 06:50:59 -03:00
parent 43ed065d19
commit 8205d8220e
+5
View File
@@ -145,6 +145,11 @@ class MainWindow():
self.notebook.next_page() self.notebook.next_page()
self.notebook.show_all() self.notebook.show_all()
if page == 1: if page == 1:
xinitrc = open('/usr/home/ghostbsd/.xinitrc', 'w')
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.close()
Gtk.main_quit() Gtk.main_quit()
def back_page(self, widget): def back_page(self, widget):