mirror of
https://github.com/rbreaves/kinto.git
synced 2025-08-05 18:38:26 +02:00
- Removed Budgie specific iconography from error messages
This commit is contained in:
@@ -503,7 +503,7 @@ class MyWindow(Gtk.Window):
|
|||||||
countkb += 1
|
countkb += 1
|
||||||
|
|
||||||
if 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
|
return
|
||||||
|
|
||||||
@@ -654,7 +654,7 @@ class MyWindow(Gtk.Window):
|
|||||||
Popen(restart)
|
Popen(restart)
|
||||||
|
|
||||||
except CalledProcessError:
|
except CalledProcessError:
|
||||||
Popen(['notify-send','Kinto: Error Resetting KB Type!','-i','budgie-desktop-symbolic'])
|
Popen(['notify-send','Kinto: Error Resetting KB Type!'])
|
||||||
|
|
||||||
def setTweaks(self,button):
|
def setTweaks(self,button):
|
||||||
win = Gtk.Window()
|
win = Gtk.Window()
|
||||||
@@ -746,7 +746,7 @@ class MyWindow(Gtk.Window):
|
|||||||
restartsvc = False
|
restartsvc = False
|
||||||
|
|
||||||
except CalledProcessError:
|
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!'])
|
||||||
if openWin and self.get_title() == "Keyboard Assistant":
|
if openWin and self.get_title() == "Keyboard Assistant":
|
||||||
openWin = False
|
openWin = False
|
||||||
win.show_all()
|
win.show_all()
|
||||||
@@ -786,7 +786,7 @@ class MyWindow(Gtk.Window):
|
|||||||
restartsvc = True
|
restartsvc = True
|
||||||
|
|
||||||
except CalledProcessError:
|
except CalledProcessError:
|
||||||
Popen(['notify-send','Kinto: Error Resetting AltGr!','-i','budgie-desktop-symbolic'])
|
Popen(['notify-send','Kinto: Error Resetting AltGr!'])
|
||||||
|
|
||||||
return
|
return
|
||||||
|
|
||||||
@@ -806,7 +806,7 @@ class MyWindow(Gtk.Window):
|
|||||||
restartsvc = True
|
restartsvc = True
|
||||||
|
|
||||||
except CalledProcessError:
|
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
|
return
|
||||||
|
|
||||||
def setCaps2Esc(self,button):
|
def setCaps2Esc(self,button):
|
||||||
@@ -830,7 +830,7 @@ class MyWindow(Gtk.Window):
|
|||||||
restartsvc = True
|
restartsvc = True
|
||||||
|
|
||||||
except CalledProcessError:
|
except CalledProcessError:
|
||||||
Popen(['notify-send','Kinto: Error resetting caps2esc!','-i','budgie-desktop-symbolic'])
|
Popen(['notify-send','Kinto: Error resetting caps2esc!'])
|
||||||
|
|
||||||
return
|
return
|
||||||
|
|
||||||
@@ -856,7 +856,7 @@ class MyWindow(Gtk.Window):
|
|||||||
restartsvc = True
|
restartsvc = True
|
||||||
|
|
||||||
except CalledProcessError:
|
except CalledProcessError:
|
||||||
Popen(['notify-send','Kinto: Error resetting caps2cmd!','-i','budgie-desktop-symbolic'])
|
Popen(['notify-send','Kinto: Error resetting caps2cmd!'])
|
||||||
|
|
||||||
return
|
return
|
||||||
|
|
||||||
@@ -875,7 +875,7 @@ class MyWindow(Gtk.Window):
|
|||||||
self.command = "send \003 journalctl -f --unit=xkeysnail.service -b\n"
|
self.command = "send \003 journalctl -f --unit=xkeysnail.service -b\n"
|
||||||
self.InputToTerm(self.command)
|
self.InputToTerm(self.command)
|
||||||
except:
|
except:
|
||||||
Popen(['notify-send','Kinto: Errror restarting Kinto!','-i','budgie-desktop-symbolic'])
|
Popen(['notify-send','Kinto: Errror restarting Kinto!'])
|
||||||
|
|
||||||
def runStop(self,button):
|
def runStop(self,button):
|
||||||
try:
|
try:
|
||||||
@@ -886,11 +886,11 @@ class MyWindow(Gtk.Window):
|
|||||||
res.wait()
|
res.wait()
|
||||||
|
|
||||||
if res.returncode == 0:
|
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 = Popen(['sudo', 'pkill','-f','bin/xkeysnail'])
|
||||||
pkillxkey.wait()
|
pkillxkey.wait()
|
||||||
except:
|
except:
|
||||||
Popen(['notify-send','Kinto: Error stopping Kinto!','-i','budgie-desktop-symbolic'])
|
Popen(['notify-send','Kinto: Error stopping Kinto!'])
|
||||||
|
|
||||||
def setAutostart(self,button,autostart):
|
def setAutostart(self,button,autostart):
|
||||||
try:
|
try:
|
||||||
@@ -906,7 +906,7 @@ class MyWindow(Gtk.Window):
|
|||||||
self.menuitem_auto.signal_id = self.menuitem_auto.connect('activate',self.setAutostart,False)
|
self.menuitem_auto.signal_id = self.menuitem_auto.connect('activate',self.setAutostart,False)
|
||||||
|
|
||||||
except CalledProcessError:
|
except CalledProcessError:
|
||||||
Popen(['notify-send','Kinto: Error setting autostart!','-i','budgie-desktop-symbolic'])
|
Popen(['notify-send','Kinto: Error setting autostart!'])
|
||||||
|
|
||||||
def setConfig(self,button):
|
def setConfig(self,button):
|
||||||
try:
|
try:
|
||||||
@@ -918,7 +918,7 @@ class MyWindow(Gtk.Window):
|
|||||||
Popen(['mousepad',os.environ['HOME']+'/.config/kinto/kinto.py'])
|
Popen(['mousepad',os.environ['HOME']+'/.config/kinto/kinto.py'])
|
||||||
|
|
||||||
except CalledProcessError: # Notify user about error on running restart commands.
|
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):
|
def setService(self,button):
|
||||||
try:
|
try:
|
||||||
@@ -930,7 +930,7 @@ class MyWindow(Gtk.Window):
|
|||||||
Popen(['mousepad','/lib/systemd/system/xkeysnail.service'])
|
Popen(['mousepad','/lib/systemd/system/xkeysnail.service'])
|
||||||
|
|
||||||
except CalledProcessError: # Notify user about error on running restart commands.
|
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 setSysKB(self,button):
|
def setSysKB(self,button):
|
||||||
if self.ostype == "XFCE":
|
if self.ostype == "XFCE":
|
||||||
|
@@ -249,7 +249,7 @@ class Indicator():
|
|||||||
countkb += 1
|
countkb += 1
|
||||||
|
|
||||||
if 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
|
return
|
||||||
|
|
||||||
@@ -451,7 +451,7 @@ class Indicator():
|
|||||||
restartsvc = False
|
restartsvc = False
|
||||||
|
|
||||||
except CalledProcessError:
|
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.hide()
|
||||||
self.destroy()
|
self.destroy()
|
||||||
@@ -480,7 +480,7 @@ class Indicator():
|
|||||||
restartsvc = True
|
restartsvc = True
|
||||||
|
|
||||||
except CalledProcessError:
|
except CalledProcessError:
|
||||||
Popen(['notify-send','Kinto: Error Resetting AltGr!','-i','budgie-desktop-symbolic'])
|
Popen(['notify-send','Kinto: Error Resetting AltGr!'])
|
||||||
|
|
||||||
return
|
return
|
||||||
|
|
||||||
@@ -500,7 +500,7 @@ class Indicator():
|
|||||||
restartsvc = True
|
restartsvc = True
|
||||||
|
|
||||||
except CalledProcessError:
|
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
|
return
|
||||||
|
|
||||||
def setCaps2Esc(self,button):
|
def setCaps2Esc(self,button):
|
||||||
@@ -524,7 +524,7 @@ class Indicator():
|
|||||||
restartsvc = True
|
restartsvc = True
|
||||||
|
|
||||||
except CalledProcessError:
|
except CalledProcessError:
|
||||||
Popen(['notify-send','Kinto: Error resetting caps2esc!','-i','budgie-desktop-symbolic'])
|
Popen(['notify-send','Kinto: Error resetting caps2esc!'])
|
||||||
|
|
||||||
return
|
return
|
||||||
|
|
||||||
@@ -550,7 +550,7 @@ class Indicator():
|
|||||||
restartsvc = True
|
restartsvc = True
|
||||||
|
|
||||||
except CalledProcessError:
|
except CalledProcessError:
|
||||||
Popen(['notify-send','Kinto: Error resetting caps2cmd!','-i','budgie-desktop-symbolic'])
|
Popen(['notify-send','Kinto: Error resetting caps2cmd!'])
|
||||||
|
|
||||||
return
|
return
|
||||||
|
|
||||||
@@ -563,13 +563,13 @@ class Indicator():
|
|||||||
res.wait()
|
res.wait()
|
||||||
|
|
||||||
if res.returncode == 0:
|
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 = Popen(['sudo', 'pkill','-f','bin/xkeysnail'])
|
||||||
pkillxkey.wait()
|
pkillxkey.wait()
|
||||||
|
|
||||||
Popen(['sudo', 'systemctl','start','xkeysnail'])
|
Popen(['sudo', 'systemctl','start','xkeysnail'])
|
||||||
except:
|
except:
|
||||||
Popen(['notify-send','Kinto: Error restarting Kinto!','-i','budgie-desktop-symbolic'])
|
Popen(['notify-send','Kinto: Error restarting Kinto!'])
|
||||||
|
|
||||||
def runStop(self,button):
|
def runStop(self,button):
|
||||||
try:
|
try:
|
||||||
@@ -580,11 +580,11 @@ class Indicator():
|
|||||||
res.wait()
|
res.wait()
|
||||||
|
|
||||||
if res.returncode == 0:
|
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 = Popen(['sudo', 'pkill','-f','bin/xkeysnail'])
|
||||||
pkillxkey.wait()
|
pkillxkey.wait()
|
||||||
except:
|
except:
|
||||||
Popen(['notify-send','Kinto: Error stopping Kinto!','-i','budgie-desktop-symbolic'])
|
Popen(['notify-send','Kinto: Error stopping Kinto!'])
|
||||||
|
|
||||||
def runDebug(self,button,opendebug):
|
def runDebug(self,button,opendebug):
|
||||||
try:
|
try:
|
||||||
@@ -593,7 +593,7 @@ class Indicator():
|
|||||||
else:
|
else:
|
||||||
Popen([os.environ['HOME']+'/.config/kinto/gui/kinto-gui.py'])
|
Popen([os.environ['HOME']+'/.config/kinto/gui/kinto-gui.py'])
|
||||||
except:
|
except:
|
||||||
Popen(['notify-send','Kinto: Error opening Kinto!','-i','budgie-desktop-symbolic'])
|
Popen(['notify-send','Kinto: Error opening Kinto!'])
|
||||||
|
|
||||||
def queryConfig(self,query):
|
def queryConfig(self,query):
|
||||||
res = Popen(query, stdout=PIPE, stderr=None, shell=True)
|
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)
|
self.chkautostart_id = self.checkbox_autostart.connect('activate',self.setAutostart,False)
|
||||||
|
|
||||||
except CalledProcessError:
|
except CalledProcessError:
|
||||||
Popen(['notify-send','Kinto: Error setting autostart!','-i','budgie-desktop-symbolic'])
|
Popen(['notify-send','Kinto: Error setting autostart!'])
|
||||||
|
|
||||||
def setConfig(self,button):
|
def setConfig(self,button):
|
||||||
try:
|
try:
|
||||||
@@ -626,7 +626,7 @@ class Indicator():
|
|||||||
Popen(['mousepad',os.environ['HOME']+'/.config/kinto/kinto.py'])
|
Popen(['mousepad',os.environ['HOME']+'/.config/kinto/kinto.py'])
|
||||||
|
|
||||||
except CalledProcessError: # Notify user about error on running restart commands.
|
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):
|
def setService(self,button):
|
||||||
try:
|
try:
|
||||||
@@ -638,7 +638,7 @@ class Indicator():
|
|||||||
Popen(['mousepad','/lib/systemd/system/xkeysnail.service'])
|
Popen(['mousepad','/lib/systemd/system/xkeysnail.service'])
|
||||||
|
|
||||||
except CalledProcessError: # Notify user about error on running restart commands.
|
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):
|
def setKB(self,button,kbtype):
|
||||||
try:
|
try:
|
||||||
@@ -685,7 +685,7 @@ class Indicator():
|
|||||||
Popen(restart)
|
Popen(restart)
|
||||||
|
|
||||||
except CalledProcessError:
|
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):
|
def setSysKB(self,button):
|
||||||
if self.ostype == "XFCE":
|
if self.ostype == "XFCE":
|
||||||
|
Reference in New Issue
Block a user