From bc14f90c9da36e4d99f4e39c5ae36005ac57da7f Mon Sep 17 00:00:00 2001 From: Adam Harrison Date: Sat, 20 Apr 2024 17:20:41 -0400 Subject: Made it so you can run the system bottle. --- src/lpm.lua | 3 +-- 1 file changed, 1 insertion(+), 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("\\", "\\\\") .. "'" -- cgit v1.2.3