Remove socket prewarming

The potential for breakage is too high, and I am working on an
alternative solution that will be better long term.

Prewarming is still used for kittens launched via keybindings
This commit is contained in:
Kovid Goyal 2022-08-20 13:38:33 +05:30
parent 4cc0138a28
commit 44ccdd36d6
No known key found for this signature in database
GPG key ID: 06BC317B515ACE7C
11 changed files with 13 additions and 1278 deletions

View file

@ -3,7 +3,6 @@
import importlib
import os
import sys
import warnings
from contextlib import contextmanager
from tempfile import TemporaryDirectory
@ -25,9 +24,6 @@ def env_vars(**kw: str) -> Iterator[None]:
def main() -> None:
if 'prewarmed' in getattr(sys, 'kitty_run_data'):
os.environ.pop('KITTY_PREWARM_SOCKET')
os.execlp(sys.executable, sys.executable, '+launch', __file__, *sys.argv[1:])
warnings.simplefilter('error')
current_home = os.path.expanduser('~') + os.sep
paths = os.environ.get('PATH', '/usr/local/sbin:/usr/local/bin:/usr/bin').split(os.pathsep)