vlc.py - try to improve Linux support
This commit is contained in:
parent
eeffa69590
commit
098be10da7
@ -213,7 +213,10 @@ class VlcPlayer(BasePlayer):
|
||||
return False
|
||||
playerController._client.ui.showErrorMessage(getMessage("en", "vlc-interface-not-installed"))
|
||||
return False
|
||||
playerController.vlcIntfPath = os.path.dirname(playerPath).replace("\\","/").replace("/usr/bin/","/usr/lib/") + "/lua/intf/" # TODO: Make Mac version use /Applications/VLC.app/Contents/MacOS/share/lua/intf/
|
||||
if sys.platform.startswith('linux'):
|
||||
playerController.vlcIntfPath = "/usr/lib/vlc/lua/intf/"
|
||||
else:
|
||||
playerController.vlcIntfPath = os.path.dirname(playerPath).replace("\\","/") + "/lua/intf/" # TODO: Make Mac version use /Applications/VLC.app/Contents/MacOS/share/lua/intf/
|
||||
playerController.vlcModulePath = playerController.vlcIntfPath + "modules/?.luac"
|
||||
if _usevlcintf(playerController.vlcIntfPath) == True:
|
||||
playerController.SLAVE_ARGS.append('--lua-config=syncplay={{port=\"{}\"}}'.format(str(playerController.vlcport)))
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user