From 08fae7a0aca702c31e3b61fee38b0862706348d4 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Tue, 29 Dec 2020 10:50:31 +0530 Subject: [PATCH] Add sbin to default paths --- kittens/tui/images.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kittens/tui/images.py b/kittens/tui/images.py index 2b48b8126..cf78b1363 100644 --- a/kittens/tui/images.py +++ b/kittens/tui/images.py @@ -85,7 +85,7 @@ def find_exe(name: str) -> Optional[str]: from kitty.utils import system_paths_on_macos paths = system_paths_on_macos() else: - paths = ['/usr/local/bin', '/opt/bin', '/usr/bin', '/bin'] + paths = ['/usr/local/bin', '/opt/bin', '/usr/bin', '/bin', '/usr/sbin', '/sbin'] path = os.pathsep.join(paths) + os.pathsep + os.defpath ans = shutil.which(name, path=path) return ans