Open Obegg opened 3 days ago
how I found this bug:
I have a script that does ALT+TAB
and when I placed mpv folder in %appdata%
it would do it twice,
log file also shows that not only scripts are loaded twice.
https://mpv.io/manual/master/#files-on-windows
Config files located in the same directory as mpv.exe are loaded with lower priority. Some config files are loaded only once, which means that e.g. of 2 input.conf files located in two config directories, only the one from the directory with higher priority will be loaded.
A third config directory with the lowest priority is the directory named mpv in the same directory as mpv.exe. This used to be the directory with the highest priority, but is now discouraged to use and might be removed in the future.
I am aware of the fact that mpv searches for a few directories (as can easily be observed in the log file),
but I don't think we are on the same page here,
I'm talking about the fact that mpv executes the same script twice, even though there's only one directory of mpv and that's in %appdata%
.
mpv will search for the /script
near mpv.exe and /script
in appdata.
Two conf dirs in your case.
I'll be honest, I am quite confused, is it possible we have a misunderstanding?
What I'm explaining in this issue is that I have one instance of mpv installed, which is in %appdata%
, I also have a one script that does ALT+TAB
, the result of which is mpv executes this script twice.
mpv will search for the /script near mpv.exe and /script in appdata.
So because mpv is in the same folder that it searches for (%appdata%
) - it loads the same scripts twice? Isn't it quite flawed?
There is no reason to install a software in its conf dir.
I do not see a problem here. If you move mpv.exe to anywhere else and keep the same script both in two /script
, it will be loaded "twice" too.
mpv Information
Other Information
Reproduction Steps
download mpv extract to
%appdata%
rename folder tompv
createscripts
folder create a new file inside scripts folder (use anything other than.lua
) open mpvExpected Behavior
scripts load once
Actual Behavior
scripts are loaded twice
Log File
dups.log
Sample Files
No response
I carefully read all instruction and confirm that I did the following:
--log-file=output.txt
.