diff --git a/kitty/utils.py b/kitty/utils.py index eaf86f09f..ce22682d1 100644 --- a/kitty/utils.py +++ b/kitty/utils.py @@ -546,6 +546,7 @@ def find_exe(name: str) -> Optional[str]: paths = system_paths_on_macos() else: paths = ['/usr/local/bin', '/opt/bin', '/usr/bin', '/bin', '/usr/sbin', '/sbin'] + paths.insert(0, os.path.expanduser('~/.local/bin')) path = os.pathsep.join(paths) + os.pathsep + os.defpath ans = shutil.which(name, path=path) return ans