This commit is contained in:
Ward Nakchbandi 2022-09-24 00:12:30 +03:00
parent 12bc765a10
commit b9b6fa5234
2 changed files with 5 additions and 6 deletions

View File

@ -58,11 +58,9 @@ class Application:
if (desktop_output.returncode) == 0: if (desktop_output.returncode) == 0:
desktop_switch.set_active(True) desktop_switch.set_active(True)
#if startup_file.is_file(): def on_desktop_switch_active_notify(self, switch, state):
# desktop_switch.set_active(True) if switch.get_active() == True :
subprocess.run(["/etc/nobara/scripts/nobara-layouts/settings-scripts/desktop.sh"], shell=True)
#def on_desktop_switch_active_notify(self, switch, state):
# if switch.get_active():
Application() Application()
Gtk.main() Gtk.main()

View File

@ -773,6 +773,7 @@
<property name="visible">True</property> <property name="visible">True</property>
<property name="can-focus">True</property> <property name="can-focus">True</property>
<property name="halign">start</property> <property name="halign">start</property>
<signal name="notify::active" handler="on_hid_switch_active_notify" swapped="no"/>
</object> </object>
<packing> <packing>
<property name="expand">False</property> <property name="expand">False</property>