diff options
| author | useredsa <emilio.dominguezs@um.es> | 2020-08-01 00:35:40 +0200 |
|---|---|---|
| committer | useredsa <emilio.dominguezs@um.es> | 2020-08-01 00:35:40 +0200 |
| commit | 73c966dc10357d2b2dc49c1e8782058f3ea03b6d (patch) | |
| tree | 430287f9b32853c9cfcfe5fb0558052a6706b9d9 /bin | |
| parent | 9a4475b9e0b71c7049b2d61e4fdf04248bc546f8 (diff) | |
Modified the check to conclude that the process is running inside a terminal.
With this commit, the process now checks whether STDIN (now) and STDOUT (as before)
are both inside a terminal.
Diffstat (limited to 'bin')
| -rwxr-xr-x | bin/kak-desktop | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/kak-desktop b/bin/kak-desktop index b003b85..5e03ab7 100755 --- a/bin/kak-desktop +++ b/bin/kak-desktop @@ -5,7 +5,7 @@ main() { if test -n "$IN_KAKOUNE_CONNECT"; then edit "$@" # Terminal. - elif test -t 1; then + elif test -t 0 -a -t 1; then kak "$@" # GUI apps. else |
