Skip to content

Commit 245d82a

Browse files
Add KDE Konsole to diagnose guess_term
1 parent 14f9fb2 commit 245d82a

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

src/textual_dev/tools/diagnose.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,12 @@ def _guess_term() -> str:
9090
term_program = os.environ.get("XTERM_VERSION") or "XTerm"
9191
elif "TERMINATOR_UUID" in os.environ:
9292
term_program = "Terminator"
93+
elif "KONSOLE_VERSION" in os.environ:
94+
term_program = (
95+
f"Konsole {os.environ.get('KONSOLE_VERSION')}"
96+
if os.environ.get("KONSOLE_VERSION")
97+
else "Konsole"
98+
)
9399

94100
else:
95101
# See if we can pull out some sort of version information too.

0 commit comments

Comments
 (0)