mirror of
https://github.com/kovidgoyal/kitty
synced 2026-06-10 18:48:54 +02:00
Fix regression in launching executables as command line arguments without full paths
This commit is contained in:
@@ -293,6 +293,10 @@ class Tab: # {{{
|
||||
cmd = self.args.args or resolved_shell(self.opts)
|
||||
if check_for_suitability:
|
||||
old_exe = cmd[0]
|
||||
if not os.path.isabs(old_exe):
|
||||
import shutil
|
||||
actual_exe = shutil.which(old_exe)
|
||||
old_exe = actual_exe if actual_exe else os.path.abspath(old_exe)
|
||||
try:
|
||||
is_executable = os.access(old_exe, os.X_OK)
|
||||
except OSError:
|
||||
|
||||
Reference in New Issue
Block a user