Skip to content

Commit 6e55a8e

Browse files
authored
Merge pull request #32 from Commandcracker/main
Add KDE Konsole to diagnose guess_term
2 parents dfcd96f + 245d82a commit 6e55a8e

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

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)