The custom init script should be considered a configuration file, and as such it should be ignored when the user wants vanilla mpv - and now it is ignored with --no-config.
Showing the changes to player/javascript (1 of 2 files). Show all
Unified · Split
| @@ -773,5 +773,8 @@ g.mp_event_loop = function mp_event_loop() { · 772 unmodified lines | |||
| 773 | 773 | ||
| 774 | // let the user extend us, e.g. by adding items to mp.module_paths | 774 | // let the user extend us, e.g. by adding items to mp.module_paths |
| 775 | // (unlike e.g. read_file, file_info doesn't expand meta-paths) | 775 | // (unlike e.g. read_file, file_info doesn't expand meta-paths) |
| 776 | if (mp.utils.file_info(mp.utils.get_user_path("~~/.init.js"))) | 776 | if (mp.get_property_bool("config") && // --no-config disables custom init |
| 777 | mp.utils.file_info(mp.utils.get_user_path("~~/.init.js"))) | ||
| 778 | { | ||
| 777 | require("~~/.init"); | 779 | require("~~/.init"); |
| 780 | } | ||