Allow easily building a kitty.app wrapper to run kitty from source

This commit is contained in:
Kovid Goyal
2018-01-10 07:44:16 +05:30
parent 08d5448523
commit 566e641be1
3 changed files with 29 additions and 27 deletions

View File

@@ -122,8 +122,7 @@ def main():
if rpath and rpath not in items:
os.environ['PATH'] += os.pathsep + rpath
if os.environ.pop('KITTY_LAUNCHED_BY_LAUNCH_SERVICES',
None) == '1' and getattr(sys, 'frozen', True):
if os.environ.pop('KITTY_LAUNCHED_BY_LAUNCH_SERVICES', None) == '1':
os.chdir(os.path.expanduser('~'))
if not os.path.isdir(os.getcwd()):
os.chdir(os.path.expanduser('~'))