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