mirror of
https://github.com/rbreaves/kinto.git
synced 2025-08-07 03:18:26 +02:00
- Added 2 additional default text editors. #317
This commit is contained in:
@@ -922,6 +922,10 @@ class MyWindow(Gtk.Window):
|
|||||||
Popen(['gedit',os.environ['HOME']+'/.config/kinto/kinto.py'])
|
Popen(['gedit',os.environ['HOME']+'/.config/kinto/kinto.py'])
|
||||||
elif which(mousepad) is not None:
|
elif which(mousepad) is not None:
|
||||||
Popen(['mousepad',os.environ['HOME']+'/.config/kinto/kinto.py'])
|
Popen(['mousepad',os.environ['HOME']+'/.config/kinto/kinto.py'])
|
||||||
|
elif which(kate) is not None:
|
||||||
|
Popen(['kate',os.environ['HOME']+'/.config/kinto/kinto.py'])
|
||||||
|
elif which(kwrite) is not None:
|
||||||
|
Popen(['kwrite',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!'])
|
Popen(['notify-send','Kinto: Error could not open config file!'])
|
||||||
@@ -934,6 +938,10 @@ class MyWindow(Gtk.Window):
|
|||||||
Popen(['gedit','/lib/systemd/system/xkeysnail.service'])
|
Popen(['gedit','/lib/systemd/system/xkeysnail.service'])
|
||||||
elif which(mousepad) is not None:
|
elif which(mousepad) is not None:
|
||||||
Popen(['mousepad','/lib/systemd/system/xkeysnail.service'])
|
Popen(['mousepad','/lib/systemd/system/xkeysnail.service'])
|
||||||
|
elif which(kate) is not None:
|
||||||
|
Popen(['kate','/lib/systemd/system/xkeysnail.service'])
|
||||||
|
elif which(kwrite) is not None:
|
||||||
|
Popen(['kwrite','/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!'])
|
Popen(['notify-send','Kinto: Error could not open config file!'])
|
||||||
|
Reference in New Issue
Block a user