From 72bf4badae3291f03fe69610285ef5a305734dcc Mon Sep 17 00:00:00 2001 From: Max Nordlund Date: Sun, 20 Jul 2014 22:40:01 +0200 Subject: [PATCH] Add ~/Applications to search path for VLC This adds the ~/Applications` to the search path for the VLC.app on Darwin (Mac OS X). It's for those that have installed VLC to their account only. --- src/livestreamer_cli/utils.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/livestreamer_cli/utils.py b/src/livestreamer_cli/utils.py index 64f5c5b8..4bd681a4 100644 --- a/src/livestreamer_cli/utils.py +++ b/src/livestreamer_cli/utils.py @@ -183,6 +183,7 @@ def find_default_player(): if "darwin" in sys.platform: paths = os.environ.get("PATH", "").split(":") paths += ["/Applications/VLC.app/Contents/MacOS/"] + paths += ["~/Applications/VLC.app/Contents/MacOS/"] path = check_paths(("VLC", "vlc"), paths) elif "win32" in sys.platform: exename = "vlc.exe"