From 7862c27d541f46964f7c20184aca90492393de40 Mon Sep 17 00:00:00 2001 From: et0h Date: Sun, 19 May 2019 20:59:04 +0100 Subject: [PATCH] Initial support for VLC Portable (#235) --- syncplay/players/vlc.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/syncplay/players/vlc.py b/syncplay/players/vlc.py index c06bcf2..4f117e3 100755 --- a/syncplay/players/vlc.py +++ b/syncplay/players/vlc.py @@ -351,6 +351,9 @@ class VlcPlayer(BasePlayer): # This should also work for all the other BSDs, such as OpenBSD or DragonFly. playerController.vlcIntfPath = "/usr/local/lib/vlc/lua/intf/" playerController.vlcIntfUserPath = os.path.join(os.getenv('HOME', '.'), ".local/share/vlc/lua/intf/") + elif "vlcportable.exe" in playerPath.lower(): + playerController.vlcIntfPath = os.path.dirname(playerPath).replace("\\", "/") + "/App/vlc/lua/intf/" + playerController.vlcIntfUserPath = playerController.vlcIntfPath else: playerController.vlcIntfPath = os.path.dirname(playerPath).replace("\\", "/") + "/lua/intf/" playerController.vlcIntfUserPath = os.path.join(os.getenv('APPDATA', '.'), "VLC\\lua\\intf\\")