mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-27 18:51:41 +02:00
Allow using relative paths in cd in sessions files that get resolved relative to the directory containing the session file
This commit is contained in:
@@ -546,7 +546,7 @@ def kitty_main(called_from_panel: bool = False) -> None:
|
||||
if cli_opts.detach:
|
||||
if cli_opts.session == '-':
|
||||
from .session import PreReadSession
|
||||
cli_opts.session = PreReadSession(sys.stdin.read(), os.environ, '-')
|
||||
cli_opts.session = PreReadSession(sys.stdin.read(), os.environ, '-', os.path.join(os.getcwd(), '-'))
|
||||
if cli_opts.replay_commands:
|
||||
from kitty.client import main as client_main
|
||||
client_main(cli_opts.replay_commands)
|
||||
|
||||
Reference in New Issue
Block a user