Browse Source

mpv: fix error on launch by removing directories inside mpv's scripts directory (#1004)

* remove dirs from mpv scripts dir

* remove submodule dir from mpv scripts dir

* add script_modules directory outside scripts direcoty

* load modules/plugins from script_modules, outside mpv's script-files-only directory

* rename variable
pull/1005/head
Wis 4 months ago
committed by GitHub
parent
commit
f1814b3690
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      .config/mpv/script_modules/mpvSockets
  2. 4
      .config/mpv/scripts/modules.lua
  3. 1
      .config/mpv/scripts/mpvSockets
  4. 4
      .gitmodules

1
.config/mpv/script_modules/mpvSockets

@ -0,0 +1 @@
Subproject commit be9b7ca84456466e54331bab59441ac207659c1c

4
.config/mpv/scripts/modules.lua

@ -1,3 +1,3 @@
local mpv_scripts_dir_path = os.getenv("HOME") .. "/.config/mpv/scripts/"
function load(relative_path) dofile(mpv_scripts_dir_path .. relative_path) end
local mpv_config_dir_path = require("mp").command_native({"expand-path", "~~/"})
function load(relative_path) dofile(mpv_config_dir_path .. "/script_modules/" .. relative_path) end
load("mpvSockets/mpvSockets.lua")

1
.config/mpv/scripts/mpvSockets

@ -1 +0,0 @@
Subproject commit 8415a08d99a46213c918613cfe1e088071018db9

4
.gitmodules

@ -1,3 +1,3 @@
[submodule ".config/mpv/scripts/mpvSockets"]
path = .config/mpv/scripts/mpvSockets
[submodule ".config/mpv/script_modules/mpvSockets"]
path = .config/mpv/script_modules/mpvSockets
url = https://github.com/wis/mpvSockets.git

Loading…
Cancel
Save