From a4ef2c18c51b3ed0960c2af916ffc32c8597f382 Mon Sep 17 00:00:00 2001 From: Flokkq Date: Sat, 11 Jan 2025 00:09:28 +0100 Subject: [PATCH] darwin(sketchybar): fix illegal stuff Signed-off-by: Flokkq --- home/darwin/sketchybar/sketchybar/helpers/init.lua | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/home/darwin/sketchybar/sketchybar/helpers/init.lua b/home/darwin/sketchybar/sketchybar/helpers/init.lua index 730e699..a19c627 100644 --- a/home/darwin/sketchybar/sketchybar/helpers/init.lua +++ b/home/darwin/sketchybar/sketchybar/helpers/init.lua @@ -1,11 +1,5 @@ -- This will backfire soon enough :/ -- TODO: https://github.com/NixOS/nixpkgs/blob/master/doc/languages-frameworks/lua.section.md -local lua_path = "/nix/store/f6ani7d3cq70fd3j0qygbh08ms600xdh-SketchyBarLua-main/share/lua/5.4" -if lua_path then - package.cpath = package.cpath .. ";" .. lua_path .. "/?.so" -else - error("SB_LUA_PATH environment variable is not set") -end +package.cpath = package.cpath .. ";/Users/" .. os.getenv("USER") .. "/.local/share/sketchybar_lua/?.so" --- Ensure the module is loaded correctly -sbar = require("sketchybar") +os.execute("(cd helpers && make)")