diff options
| -rw-r--r-- | config.dot/luakit.link/rc.lua | 32 |
1 files changed, 17 insertions, 15 deletions
diff --git a/config.dot/luakit.link/rc.lua b/config.dot/luakit.link/rc.lua index d0a7e3b..6725e4d 100644 --- a/config.dot/luakit.link/rc.lua +++ b/config.dot/luakit.link/rc.lua @@ -4,21 +4,23 @@ require "lfs" -if unique then - unique.new("org.luakit") - -- Check for a running luakit instance - if unique.is_running() then - if uris[1] then - for _, uri in ipairs(uris) do - if lfs.attributes(uri) then uri = os.abspath(uri) end - unique.send_message("tabopen " .. uri) - end - else - unique.send_message("winopen") - end - luakit.quit() - end -end +-- This might cause confusing behaviors with used along with session management +-- and one want to be able to run simultaneous instances with different sessions +--if unique then +-- unique.new("org.luakit") +-- -- Check for a running luakit instance +-- if unique.is_running() then +-- if uris[1] then +-- for _, uri in ipairs(uris) do +-- if lfs.attributes(uri) then uri = os.abspath(uri) end +-- unique.send_message("tabopen " .. uri) +-- end +-- else +-- unique.send_message("winopen") +-- end +-- luakit.quit() +-- end +--end -- Load library of useful functions for luakit require "lousy" |
