commit
This commit is contained in:
parent
12bc765a10
commit
b9b6fa5234
@ -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()
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user