- Added xfce to kinto system tray

This commit is contained in:
Ben Reaves
2020-08-04 21:04:01 -05:00
parent 72f2f93657
commit 98a1d8a0f1
2 changed files with 10 additions and 3 deletions

View File

@@ -18,6 +18,7 @@ class Indicator():
homedir = os.path.expanduser("~")
kconfig = homedir+"/.config/kinto/kinto.py"
ostype = os.environ.get('XDG_CURRENT_DESKTOP')
enable_id = 0
winmac_id = 0
@@ -183,10 +184,16 @@ class Indicator():
subprocess.Popen(['notify-send','Kinto: Error Resetting KB Type!','-i','budgie-desktop-symbolic'])
def setSysKB(self,button):
subprocess.Popen(['gnome-control-center','keyboard'])
if self.ostype == "XFCE":
subprocess.Popen(['xfce4-keyboard-settings'])
else:
subprocess.Popen(['gnome-control-center','keyboard'])
def setRegion(self,button):
subprocess.Popen(['gnome-control-center','region'])
if self.ostype == "XFCE":
subprocess.Popen(['xfce4-keyboard-settings'])
else:
subprocess.Popen(['gnome-language-selector'])
def quit(source):
Gtk.main_quit()