mirror of https://github.com/Syncplay/syncplay
added support for several BSDs
This commit is contained in:
parent
1c9c31bd1a
commit
097327f6e3
|
@ -21,6 +21,7 @@ Place the syncplay.lua file in the main (all user) VLC /lua/intf/ sub-directory:
|
||||||
* Window: %ProgramFiles%\VideoLAN\VLC\lua\intf\
|
* Window: %ProgramFiles%\VideoLAN\VLC\lua\intf\
|
||||||
* Linux: /usr/lib/vlc/lua/intf/
|
* Linux: /usr/lib/vlc/lua/intf/
|
||||||
* Mac OS X: /Applications/VLC.app/Contents/MacOS/share/lua/intf/
|
* Mac OS X: /Applications/VLC.app/Contents/MacOS/share/lua/intf/
|
||||||
|
* FreeBSD, OpenBSD etc.: /usr/local/lib/vlc/lua/intf/
|
||||||
|
|
||||||
You may also need to re-copy the syncplay.lua file when you update VLC.
|
You may also need to re-copy the syncplay.lua file when you update VLC.
|
||||||
|
|
||||||
|
|
|
@ -70,7 +70,9 @@ VLC_PATHS = [
|
||||||
r"C:\Program Files\VideoLAN\VLC\vlc.exe",
|
r"C:\Program Files\VideoLAN\VLC\vlc.exe",
|
||||||
"/usr/bin/vlc",
|
"/usr/bin/vlc",
|
||||||
"/usr/bin/vlc-wrapper",
|
"/usr/bin/vlc-wrapper",
|
||||||
"/Applications/VLC.app/Contents/MacOS/VLC"
|
"/Applications/VLC.app/Contents/MacOS/VLC",
|
||||||
|
"/usr/local/bin/vlc",
|
||||||
|
"/usr/local/bin/vlc-wrapper"
|
||||||
]
|
]
|
||||||
|
|
||||||
VLC_ICONPATH = "vlc.png"
|
VLC_ICONPATH = "vlc.png"
|
||||||
|
|
|
@ -256,6 +256,11 @@ class VlcPlayer(BasePlayer):
|
||||||
elif sys.platform.startswith('darwin'):
|
elif sys.platform.startswith('darwin'):
|
||||||
playerController.vlcIntfPath = "/Applications/VLC.app/Contents/MacOS/share/lua/intf/"
|
playerController.vlcIntfPath = "/Applications/VLC.app/Contents/MacOS/share/lua/intf/"
|
||||||
playerController.vlcIntfUserPath = os.path.join(os.getenv('HOME', '.'), "Library/Application Support/org.videolan.vlc/lua/intf/")
|
playerController.vlcIntfUserPath = os.path.join(os.getenv('HOME', '.'), "Library/Application Support/org.videolan.vlc/lua/intf/")
|
||||||
|
elif 'bsd' in sys.platform or sys.platform.startswith('dragonfly'):
|
||||||
|
# *BSD ports/pkgs install to /usr/local by default.
|
||||||
|
# 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/")
|
||||||
else:
|
else:
|
||||||
playerController.vlcIntfPath = os.path.dirname(playerPath).replace("\\", "/") + "/lua/intf/"
|
playerController.vlcIntfPath = os.path.dirname(playerPath).replace("\\", "/") + "/lua/intf/"
|
||||||
playerController.vlcIntfUserPath = os.path.join(os.getenv('APPDATA', '.'), "VLC\\lua\\intf\\")
|
playerController.vlcIntfUserPath = os.path.join(os.getenv('APPDATA', '.'), "VLC\\lua\\intf\\")
|
||||||
|
|
|
@ -131,6 +131,8 @@ class ConfigDialog(QtGui.QDialog):
|
||||||
defaultdirectory = "/usr/bin"
|
defaultdirectory = "/usr/bin"
|
||||||
elif sys.platform.startswith('darwin'):
|
elif sys.platform.startswith('darwin'):
|
||||||
defaultdirectory = "/Applications/"
|
defaultdirectory = "/Applications/"
|
||||||
|
elif "bsd" in sys.platform or sys.platform.startswith('dragonfly'):
|
||||||
|
defaultdirectory = "/usr/local/bin"
|
||||||
|
|
||||||
fileName, filtr = QtGui.QFileDialog.getOpenFileName(self,
|
fileName, filtr = QtGui.QFileDialog.getOpenFileName(self,
|
||||||
"Browse for media player executable",
|
"Browse for media player executable",
|
||||||
|
|
Loading…
Reference in New Issue