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

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

View File

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