mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-05-13 08:26:56 +00:00
Nicer error message when user tries to run kitten with allow_remote_control from command line
This commit is contained in:
parent
bb4e8ffef0
commit
909671f508
1 changed files with 2 additions and 0 deletions
|
|
@ -70,6 +70,8 @@ class KittenUI:
|
|||
return
|
||||
if self.allow_remote_control:
|
||||
self.to = os.environ.get('KITTY_LISTEN_ON', '')
|
||||
if not self.to:
|
||||
raise ValueError('Remote control not enabled, this kitten should be run via a map in kitty.conf, not from the command line')
|
||||
self.rc_fd = int(self.to.partition(':')[-1])
|
||||
os.set_inheritable(self.rc_fd, False)
|
||||
if (self.remote_control_password or self.remote_control_password == '') and not self.password:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue