- Added 2 additional default text editors. #317

This commit is contained in:
Ben Reaves
2020-11-11 23:06:12 -06:00
parent e0344eaa72
commit 1406e3bea5

View File

@@ -922,6 +922,10 @@ class MyWindow(Gtk.Window):
Popen(['gedit',os.environ['HOME']+'/.config/kinto/kinto.py'])
elif which(mousepad) is not None:
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.
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'])
elif which(mousepad) is not None:
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.
Popen(['notify-send','Kinto: Error could not open config file!'])