summaryrefslogtreecommitdiffstats
path: root/TOOLS
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-02-13 22:28:44 +0100
committerDiogo Franco (Kovensky) <diogomfranco@gmail.com>2015-02-16 18:13:01 +0900
commit6488e77d8a47a3d45bb5698211716b7dbfcc7503 (patch)
tree243b98ee8bec486954fd899917cb4d11bdcfcca6 /TOOLS
parent34a856f4653d893d0806a37fbd35a2053781f03f (diff)
downloadmpv-6488e77d8a47a3d45bb5698211716b7dbfcc7503.tar.bz2
mpv-6488e77d8a47a3d45bb5698211716b7dbfcc7503.tar.xz
player: deprecate 'config' files (use mpv.conf), warn against clashes
Apparently there's at least one distro which ships a /etc/mpv/mpv.conf file (mpv doesn't install such a file). This breaks config files named 'config' located in the user's mpv config directory, because mpv first loads files named 'config' and then 'mpv.conf'. There is no mechanism for putting files with different names into the same config path order. (Even worse, that mpv.conf file only set an option to the default value. Why do distros always do very stupid things?) Print a warning on collisions. Although using 'config' was well-supported, supporting both names is starting to become messy, so deprecate 'config' and print a warning if one is found. At least we will be able to remove the whole mess once 'config' files are ignored... This also affects the osx-bundle, which intentionally used these not-so- optimal semantics. Solve it in a different way. (Unfortunately with an ifdef - it's not required, but having to explain everyone why mpv tries to load a osx-bundle.mpv file on Linux and Windows would consume energy.) Closes #1569. (cherry picked from commit db167cd438b516371bc2a7b6e08a57f2054dc742)
Diffstat (limited to 'TOOLS')
-rw-r--r--TOOLS/osxbundle/mpv.app/Contents/Resources/osx-bundle.conf (renamed from TOOLS/osxbundle/mpv.app/Contents/Resources/config)0
1 files changed, 0 insertions, 0 deletions
diff --git a/TOOLS/osxbundle/mpv.app/Contents/Resources/config b/TOOLS/osxbundle/mpv.app/Contents/Resources/osx-bundle.conf
index ff78dfacf6..ff78dfacf6 100644
--- a/TOOLS/osxbundle/mpv.app/Contents/Resources/config
+++ b/TOOLS/osxbundle/mpv.app/Contents/Resources/osx-bundle.conf