mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-18 22:44:50 +02:00
Dont fail to start if running the shell to read the EDITOR env var fails
Fixes #1869
This commit is contained in:
@@ -217,6 +217,9 @@ def read_shell_environment(opts):
|
||||
k, v = line.partition('=')[::2]
|
||||
if k and v:
|
||||
ans[k] = v
|
||||
else:
|
||||
log_error('Failed to run shell to read its environment')
|
||||
read_shell_environment.ans = {}
|
||||
return read_shell_environment.ans
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user