File tree Expand file tree Collapse file tree 1 file changed +14
-3
lines changed
Expand file tree Collapse file tree 1 file changed +14
-3
lines changed Original file line number Diff line number Diff line change 11json = require " json"
2- -- MTFG LUA Wrappper Version 2.0.2
2+ -- MTFG LUA Wrappper Version 2.0.3
33
44-- global var
55processHandleMTFG = nil
@@ -88,8 +88,19 @@ function exec_mtfg(no_tracking)
8888 cmd = " /usr/bin/bash"
8989 table.insert (args , ofs .ExtensionDir () .. " /Python-Funscript-Editor/conda_wrapper.sh" )
9090 elseif platform == " Linux, Nix" then
91- os.execute (" chmod +x \" " .. ofs .ExtensionDir () .. " /Python-Funscript-Editor/nix_wrapper.sh" .. " \" " )
92- cmd = ofs .ExtensionDir () .. " /Python-Funscript-Editor/nix_wrapper.sh"
91+ -- old code:
92+ -- os.execute("chmod +x \"" .. ofs.ExtensionDir() .. "/Python-Funscript-Editor/nix_wrapper.sh" .. "\"")
93+ -- cmd = ofs.ExtensionDir() .. "/Python-Funscript-Editor/nix_wrapper.sh"
94+
95+ file = io.open (" /tmp/nix-mtfg.sh" , " w" )
96+ file :write (" #!/usr/bin/env bash\n " )
97+ file :write (" unset LD_LIBRARY_PATH\n " )
98+ file :write (" nix run github:michael-mueller-git/Python-Funscript-Editor --refresh -- \" $@\"\n " )
99+ file :close ()
100+
101+ os.execute (" chmod +x /tmp/nix-mtfg.sh" )
102+
103+ cmd = " /tmp/nix-mtfg.sh"
93104 else
94105 print (" ERROR: Platform Not Implemented (" , platform , " )" )
95106 end
You can’t perform that action at this time.
0 commit comments