Skip to content

Commit 25ea136

Browse files
committed
Detect when kitty is being used as terminal
1 parent 636b3b2 commit 25ea136

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pwnlib/util/misc.py

+3
Original file line numberDiff line numberDiff line change
@@ -327,6 +327,9 @@ def run_in_new_terminal(command, terminal=None, args=None, kill_at_exit=True, pr
327327
elif 'DISPLAY' in os.environ and which('x-terminal-emulator'):
328328
terminal = 'x-terminal-emulator'
329329
args = ['-e']
330+
elif 'KITTY_PID' in os.environ and which('kitty') and which('kitten'):
331+
terminal = 'kitten'
332+
args = ['@', 'launch']
330333
elif 'KONSOLE_VERSION' in os.environ and which('qdbus'):
331334
qdbus = which('qdbus')
332335
window_id = os.environ['WINDOWID']

0 commit comments

Comments
 (0)