fish; clear line hack
parent
70d29ee1c7
commit
2f23869a55
|
@ -3,7 +3,7 @@
|
|||
import dbus
|
||||
from os.path import basename
|
||||
from xml.etree import ElementTree
|
||||
IDLE_PROCESS = ["zsh", "bash"]
|
||||
IDLE_PROCESS = ["zsh", "bash", "fish"]
|
||||
KONSOLE_PATH = 'org.kde.konsole'
|
||||
|
||||
|
||||
|
@ -30,5 +30,6 @@ if __name__ == "__main__":
|
|||
object_path = "/Sessions/{id}".format(id=x)
|
||||
session = session_bus.get_object(KONSOLE_PATH, object_path)
|
||||
foreground_id = session.foregroundProcessId()
|
||||
import pdb; pdb.set_trace()
|
||||
if is_shell(foreground_id):
|
||||
session.runCommand("exit")
|
||||
session.runCommand("\15exit")
|
||||
|
|
Loading…
Reference in New Issue