diff options
author | Adam Harrison <adamdharrison@gmail.com> | 2024-04-20 17:20:41 -0400 |
---|---|---|
committer | Adam Harrison <adamdharrison@gmail.com> | 2024-04-20 17:20:41 -0400 |
commit | bc14f90c9da36e4d99f4e39c5ae36005ac57da7f (patch) | |
tree | 4dbc6f5ceebf924b0bdf14da3f9f051e10a6ee8d /src/lpm.lua | |
parent | 74e5fe4800f2bc96704c92b06ee322fa8ab849ef (diff) | |
download | lite-xl-plugin-manager-bc14f90c9da36e4d99f4e39c5ae36005ac57da7f.tar.gz lite-xl-plugin-manager-bc14f90c9da36e4d99f4e39c5ae36005ac57da7f.zip |
Made it so you can run the system bottle.
Diffstat (limited to 'src/lpm.lua')
-rw-r--r-- | src/lpm.lua | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/lpm.lua b/src/lpm.lua index c325051..284273c 100644 --- a/src/lpm.lua +++ b/src/lpm.lua @@ -1467,8 +1467,7 @@ end function Bottle:run(args) args = args or {} - if self.is_system then error("system bottle cannot be run") end - local path = self.local_path .. PATHSEP .. "lite-xl" .. EXECUTABLE_EXTENSION + local path = not self.is_system and (self.local_path .. PATHSEP .. "lite-xl" .. EXECUTABLE_EXTENSION) or self.lite_xl:get_binary_path() if not system.stat(path) then error("cannot find bottle executable " .. path) end local line = path .. (#args > 0 and " " or "") .. table.concat(common.map(args, function(arg) return "'" .. arg:gsub("'", "'\"'\"'"):gsub("\\", "\\\\") .. "'" |