mirror of
https://github.com/Syncplay/syncplay
synced 2024-12-17 20:34:42 +00:00
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\
|
||||
* Linux: /usr/lib/vlc/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.
|
||||
|
||||
|
@ -70,7 +70,9 @@ VLC_PATHS = [
|
||||
r"C:\Program Files\VideoLAN\VLC\vlc.exe",
|
||||
"/usr/bin/vlc",
|
||||
"/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"
|
||||
|
@ -256,6 +256,11 @@ class VlcPlayer(BasePlayer):
|
||||
elif sys.platform.startswith('darwin'):
|
||||
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/")
|
||||
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:
|
||||
playerController.vlcIntfPath = os.path.dirname(playerPath).replace("\\", "/") + "/lua/intf/"
|
||||
playerController.vlcIntfUserPath = os.path.join(os.getenv('APPDATA', '.'), "VLC\\lua\\intf\\")
|
||||
|
@ -131,6 +131,8 @@ class ConfigDialog(QtGui.QDialog):
|
||||
defaultdirectory = "/usr/bin"
|
||||
elif sys.platform.startswith('darwin'):
|
||||
defaultdirectory = "/Applications/"
|
||||
elif "bsd" in sys.platform or sys.platform.startswith('dragonfly'):
|
||||
defaultdirectory = "/usr/local/bin"
|
||||
|
||||
fileName, filtr = QtGui.QFileDialog.getOpenFileName(self,
|
||||
"Browse for media player executable",
|
||||
|
Loading…
Reference in New Issue
Block a user