summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorAlex Leferry 2 <alexherbo2@gmail.com>2020-06-29 09:16:46 +0200
committerAlex Leferry 2 <alexherbo2@gmail.com>2020-06-29 09:16:46 +0200
commit40e73ed6154d760bea0efeeb129f95a10124ef2a (patch)
tree3c5029686e68d320edfe79de03744e02aa6c1f2b /bin
parent46a0ba7cb0c8dbeec9afb47de85b451e2bc87fd1 (diff)
kak-desktop: Readd terminal handling
Fixes #19
Diffstat (limited to 'bin')
-rwxr-xr-xbin/kak-desktop3
1 files changed, 3 insertions, 0 deletions
diff --git a/bin/kak-desktop b/bin/kak-desktop
index 53925ec..7339aa3 100755
--- a/bin/kak-desktop
+++ b/bin/kak-desktop
@@ -4,6 +4,9 @@ main() {
# Send the edit command to the client.
if test -n "$KAKOUNE_SESSION" -a -n "$KAKOUNE_CLIENT"; then
edit "$@"
+ # Terminal.
+ elif test -t 1; then
+ kak "$@"
# GUI apps.
else
launch "$@"