diff options
| author | Silvio Rhatto <rhatto@riseup.net> | 2017-09-21 09:01:43 -0300 |
|---|---|---|
| committer | Silvio Rhatto <rhatto@riseup.net> | 2017-09-21 09:01:43 -0300 |
| commit | 3f3f893129c0ba52fff9b6234723d4ae1d861c4d (patch) | |
| tree | 11403daee9627b6dd1501ba2640dbf0c24910748 | |
| parent | b242f93991765cb043ef7f772c6224c654a45ece (diff) | |
| download | luakit-legacy.tar.gz luakit-legacy.tar.bz2 | |
Do not check for unique instancelegacy
| -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" |
