commit
This commit is contained in:
parent
19995a1b12
commit
12bc765a10
@ -34,7 +34,7 @@ class Application:
|
||||
win10toggle.set_active(True)
|
||||
win10toggle.pressed()
|
||||
|
||||
|
||||
### Layouts ###
|
||||
|
||||
def test1(self, widget):
|
||||
print("test1")
|
||||
@ -47,5 +47,22 @@ class Application:
|
||||
def test4(self, widget):
|
||||
print("test4")
|
||||
|
||||
### Settings ###
|
||||
|
||||
#### Desktop Switch ####
|
||||
|
||||
desktop_switch = self.builder.get_object("desktop_switch")
|
||||
|
||||
desktop_output = subprocess.run(["gsettings get org.gnome.shell enabled-extensions | grep ding@rastersoft.com"], shell=True)
|
||||
|
||||
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():
|
||||
|
||||
Application()
|
||||
Gtk.main()
|
||||
|
Loading…
Reference in New Issue
Block a user