mirror of
https://github.com/rbreaves/kinto.git
synced 2025-08-05 18:38:26 +02:00
- Added xfce to kinto system tray
This commit is contained in:
@@ -18,6 +18,7 @@ class Indicator():
|
|||||||
|
|
||||||
homedir = os.path.expanduser("~")
|
homedir = os.path.expanduser("~")
|
||||||
kconfig = homedir+"/.config/kinto/kinto.py"
|
kconfig = homedir+"/.config/kinto/kinto.py"
|
||||||
|
ostype = os.environ.get('XDG_CURRENT_DESKTOP')
|
||||||
|
|
||||||
enable_id = 0
|
enable_id = 0
|
||||||
winmac_id = 0
|
winmac_id = 0
|
||||||
@@ -183,10 +184,16 @@ class Indicator():
|
|||||||
subprocess.Popen(['notify-send','Kinto: Error Resetting KB Type!','-i','budgie-desktop-symbolic'])
|
subprocess.Popen(['notify-send','Kinto: Error Resetting KB Type!','-i','budgie-desktop-symbolic'])
|
||||||
|
|
||||||
def setSysKB(self,button):
|
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):
|
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):
|
def quit(source):
|
||||||
Gtk.main_quit()
|
Gtk.main_quit()
|
||||||
|
@@ -201,7 +201,7 @@ rightalt=false
|
|||||||
vssublime=false
|
vssublime=false
|
||||||
|
|
||||||
if [[ $1 == "1" || $1 == "2" || $1 == "3" || $1 == "winmac" || $1 == "mac" || $1 == "chromebook" ]]; then
|
if [[ $1 == "1" || $1 == "2" || $1 == "3" || $1 == "winmac" || $1 == "mac" || $1 == "chromebook" ]]; then
|
||||||
if [[ $dename == "gnome" || $dename == "budgie" || $dename == "mate" ]];then
|
if [[ $dename == "gnome" || $dename == "budgie" || $dename == "mate" || $dename == "xfce" ]];then
|
||||||
installtray=true
|
installtray=true
|
||||||
while true; do
|
while true; do
|
||||||
read -rep $'\nWould you like to install the Kinto System Tray (AppInidcator)? (Y/n)\n' yn
|
read -rep $'\nWould you like to install the Kinto System Tray (AppInidcator)? (Y/n)\n' yn
|
||||||
|
Reference in New Issue
Block a user