mirror of
https://github.com/rbreaves/kinto.git
synced 2025-08-02 00:56:39 +02:00
- Added xfce to kinto system tray
This commit is contained in:
@@ -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()
|
||||
|
Reference in New Issue
Block a user