mirror of
https://github.com/rbreaves/kinto.git
synced 2025-08-01 16:56:38 +02:00
- Removed Budgie specific iconography from error messages
This commit is contained in:
@@ -249,7 +249,7 @@ class Indicator():
|
||||
countkb += 1
|
||||
|
||||
if countkb > 1:
|
||||
Popen(['notify-send','Kinto: Remove ' + str(countkb-1) + ' kb type(s)','-i','budgie-desktop-symbolic'])
|
||||
Popen(['notify-send','Kinto: Remove ' + str(countkb-1) + ' kb type(s)'])
|
||||
|
||||
return
|
||||
|
||||
@@ -451,7 +451,7 @@ class Indicator():
|
||||
restartsvc = False
|
||||
|
||||
except CalledProcessError:
|
||||
Popen(['notify-send','Kinto: Error restarting Kinto after setting tweaks!','-i','budgie-desktop-symbolic'])
|
||||
Popen(['notify-send','Kinto: Error restarting Kinto after setting tweaks!'])
|
||||
|
||||
self.hide()
|
||||
self.destroy()
|
||||
@@ -480,7 +480,7 @@ class Indicator():
|
||||
restartsvc = True
|
||||
|
||||
except CalledProcessError:
|
||||
Popen(['notify-send','Kinto: Error Resetting AltGr!','-i','budgie-desktop-symbolic'])
|
||||
Popen(['notify-send','Kinto: Error Resetting AltGr!'])
|
||||
|
||||
return
|
||||
|
||||
@@ -500,7 +500,7 @@ class Indicator():
|
||||
restartsvc = True
|
||||
|
||||
except CalledProcessError:
|
||||
Popen(['notify-send','Kinto: Error Resetting SublimeText remaps for VSCode!','-i','budgie-desktop-symbolic'])
|
||||
Popen(['notify-send','Kinto: Error Resetting SublimeText remaps for VSCode!'])
|
||||
return
|
||||
|
||||
def setCaps2Esc(self,button):
|
||||
@@ -524,7 +524,7 @@ class Indicator():
|
||||
restartsvc = True
|
||||
|
||||
except CalledProcessError:
|
||||
Popen(['notify-send','Kinto: Error resetting caps2esc!','-i','budgie-desktop-symbolic'])
|
||||
Popen(['notify-send','Kinto: Error resetting caps2esc!'])
|
||||
|
||||
return
|
||||
|
||||
@@ -550,7 +550,7 @@ class Indicator():
|
||||
restartsvc = True
|
||||
|
||||
except CalledProcessError:
|
||||
Popen(['notify-send','Kinto: Error resetting caps2cmd!','-i','budgie-desktop-symbolic'])
|
||||
Popen(['notify-send','Kinto: Error resetting caps2cmd!'])
|
||||
|
||||
return
|
||||
|
||||
@@ -563,13 +563,13 @@ class Indicator():
|
||||
res.wait()
|
||||
|
||||
if res.returncode == 0:
|
||||
# Popen(['notify-send','Kinto: Ending Debug','-i','budgie-desktop-symbolic'])
|
||||
# Popen(['notify-send','Kinto: Ending Debug'])
|
||||
pkillxkey = Popen(['sudo', 'pkill','-f','bin/xkeysnail'])
|
||||
pkillxkey.wait()
|
||||
|
||||
Popen(['sudo', 'systemctl','start','xkeysnail'])
|
||||
except:
|
||||
Popen(['notify-send','Kinto: Error restarting Kinto!','-i','budgie-desktop-symbolic'])
|
||||
Popen(['notify-send','Kinto: Error restarting Kinto!'])
|
||||
|
||||
def runStop(self,button):
|
||||
try:
|
||||
@@ -580,11 +580,11 @@ class Indicator():
|
||||
res.wait()
|
||||
|
||||
if res.returncode == 0:
|
||||
# Popen(['notify-send','Kinto: Ending Debug','-i','budgie-desktop-symbolic'])
|
||||
# Popen(['notify-send','Kinto: Ending Debug'])
|
||||
pkillxkey = Popen(['sudo', 'pkill','-f','bin/xkeysnail'])
|
||||
pkillxkey.wait()
|
||||
except:
|
||||
Popen(['notify-send','Kinto: Error stopping Kinto!','-i','budgie-desktop-symbolic'])
|
||||
Popen(['notify-send','Kinto: Error stopping Kinto!'])
|
||||
|
||||
def runDebug(self,button,opendebug):
|
||||
try:
|
||||
@@ -593,7 +593,7 @@ class Indicator():
|
||||
else:
|
||||
Popen([os.environ['HOME']+'/.config/kinto/gui/kinto-gui.py'])
|
||||
except:
|
||||
Popen(['notify-send','Kinto: Error opening Kinto!','-i','budgie-desktop-symbolic'])
|
||||
Popen(['notify-send','Kinto: Error opening Kinto!'])
|
||||
|
||||
def queryConfig(self,query):
|
||||
res = Popen(query, stdout=PIPE, stderr=None, shell=True)
|
||||
@@ -614,7 +614,7 @@ class Indicator():
|
||||
self.chkautostart_id = self.checkbox_autostart.connect('activate',self.setAutostart,False)
|
||||
|
||||
except CalledProcessError:
|
||||
Popen(['notify-send','Kinto: Error setting autostart!','-i','budgie-desktop-symbolic'])
|
||||
Popen(['notify-send','Kinto: Error setting autostart!'])
|
||||
|
||||
def setConfig(self,button):
|
||||
try:
|
||||
@@ -626,7 +626,7 @@ class Indicator():
|
||||
Popen(['mousepad',os.environ['HOME']+'/.config/kinto/kinto.py'])
|
||||
|
||||
except CalledProcessError: # Notify user about error on running restart commands.
|
||||
Popen(['notify-send','Kinto: Error could not open config file!','-i','budgie-desktop-symbolic'])
|
||||
Popen(['notify-send','Kinto: Error could not open config file!'])
|
||||
|
||||
def setService(self,button):
|
||||
try:
|
||||
@@ -638,7 +638,7 @@ class Indicator():
|
||||
Popen(['mousepad','/lib/systemd/system/xkeysnail.service'])
|
||||
|
||||
except CalledProcessError: # Notify user about error on running restart commands.
|
||||
Popen(['notify-send','Kinto: Error could not open config file!','-i','budgie-desktop-symbolic'])
|
||||
Popen(['notify-send','Kinto: Error could not open config file!'])
|
||||
|
||||
def setKB(self,button,kbtype):
|
||||
try:
|
||||
@@ -685,7 +685,7 @@ class Indicator():
|
||||
Popen(restart)
|
||||
|
||||
except CalledProcessError:
|
||||
Popen(['notify-send','Kinto: Error Resetting KB Type!','-i','budgie-desktop-symbolic'])
|
||||
Popen(['notify-send','Kinto: Error Resetting KB Type!'])
|
||||
|
||||
def setSysKB(self,button):
|
||||
if self.ostype == "XFCE":
|
||||
|
Reference in New Issue
Block a user