This commit is contained in:
Branch Vincent 2023-10-08 09:57:41 -07:00 committed by GitHub
commit f3e0793e1b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3,7 +3,7 @@ import sys
import tty
import termios
import colorama
from distutils.spawn import find_executable
from shutil import which
from .. import const
init_output = colorama.init
@ -38,7 +38,7 @@ def get_key():
def open_command(arg):
if find_executable('xdg-open'):
if which('xdg-open'):
return 'xdg-open ' + arg
return 'open ' + arg