mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-23 16:58:09 +02:00
Startup in the home directory when launched by launch services
This commit is contained in:
@@ -138,6 +138,8 @@ def on_glfw_error(code, msg):
|
||||
|
||||
|
||||
def main():
|
||||
if os.environ.pop('KITTY_LAUNCHED_BY_LAUNCH_SERVICES', None) == '1' and getattr(sys, 'frozen', True):
|
||||
os.chdir(os.path.expanduser('~'))
|
||||
args = option_parser().parse_args()
|
||||
if args.cmd:
|
||||
exec(args.cmd)
|
||||
|
||||
Reference in New Issue
Block a user