Package: luakit
Version: 2011.07.22-2
Severity: important

Hello, this is probably a stupid bug but since I am not fluent enough
in lua I am unable to provide a patch (sorry).

Activating the follow.style in /etc/xdg/luakit/rc.lua (attached) will
raise an error:

/etc/xdg/luakit/rc.lua:104: attempt to index local 's' (a nil value)
E: luakit: main:185: no windows spawned by rc file, exiting

And luakit exits thus making luakit unusable.

-- System Information:
Debian Release: wheezy/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.39-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=fr_BE.UTF-8, LC_CTYPE=fr_BE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages luakit depends on:
ii  libatk1.0-0                   2.0.1-2    ATK accessibility toolkit
ii  libc6                         2.13-10    Embedded GNU C Library: Shared lib
ii  libcairo2                     1.10.2-6   The Cairo 2D vector graphics libra
ii  libfontconfig1                2.8.0-3    generic font configuration library
ii  libfreetype6                  2.4.4-2    FreeType 2 font engine, shared lib
ii  libgdk-pixbuf2.0-0            2.23.5-2   GDK Pixbuf library
ii  libglib2.0-0                  2.28.6-1   The GLib library of C routines
ii  libgtk2.0-0                   2.24.5-3   GTK+ graphical user interface libr
ii  liblua5.1-0                   5.1.4-7    Shared library for the Lua interpr
ii  liblua5.1-filesystem0         1.5.0-2    luafilesystem library for the Lua 
ii  libpango1.0-0                 1.28.4-1   Layout and rendering of internatio
ii  libsoup2.4-1                  2.34.2-2   HTTP library implementation in C -
ii  libsqlite3-0                  3.7.7-2    SQLite 3 shared library
ii  libunique-1.0-0               1.1.6-2    Library for writing single instanc
ii  libwebkitgtk-1.0-0            1.4.2-1    Web content engine library for Gtk

luakit recommends no packages.

luakit suggests no packages.

-- Configuration Files:
/etc/xdg/luakit/rc.lua changed:
-----------------------------------------------------------------------
-- luakit configuration file, more information at http://luakit.org/ --
-----------------------------------------------------------------------
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
                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"
-- Small util functions to print output (info prints only when luakit.verbose 
is true)
function warn(...) io.stderr:write(string.format(...) .. "\n") end
function info(...) if luakit.verbose then io.stderr:write(string.format(...) .. 
"\n") end end
-- Load users global config
-- ("$XDG_CONFIG_HOME/luakit/globals.lua" or "/etc/xdg/luakit/globals.lua")
require "globals"
-- Load users theme
-- ("$XDG_CONFIG_HOME/luakit/theme.lua" or "/etc/xdg/luakit/theme.lua")
lousy.theme.init(lousy.util.find_config("theme.lua"))
theme = assert(lousy.theme.get(), "failed to load theme")
-- Load users window class
-- ("$XDG_CONFIG_HOME/luakit/window.lua" or "/etc/xdg/luakit/window.lua")
require "window"
-- Load users webview class
-- ("$XDG_CONFIG_HOME/luakit/webview.lua" or "/etc/xdg/luakit/webview.lua")
require "webview"
-- Load users mode configuration
-- ("$XDG_CONFIG_HOME/luakit/modes.lua" or "/etc/xdg/luakit/modes.lua")
require "modes"
-- Load users keybindings
-- ("$XDG_CONFIG_HOME/luakit/binds.lua" or "/etc/xdg/luakit/binds.lua")
require "binds"
----------------------------------
-- Optional user script loading --
----------------------------------
-- Add sqlite3 cookiejar
require "cookies"
-- Cookie blocking by domain (extends cookies module)
-- Add domains to the whitelist at "$XDG_CONFIG_HOME/luakit/cookie.whitelist"
-- and blacklist at "$XDG_CONFIG_HOME/luakit/cookie.blacklist".
-- Each domain must be on it's own line and you may use "*" as a
-- wildcard character (I.e. "*google.com")
--require "cookie_blocking"
-- Block all cookies by default (unless whitelisted)
--cookies.default_allow = false
-- Add uzbl-like form filling
require "formfiller"
-- Add proxy support & manager
require "proxy"
-- Add quickmarks support & manager
require "quickmarks"
-- Add session saving/loading support
require "session"
-- Add command to list closed tabs & bind to open closed tabs
require "undoclose"
-- Add command to list tab history items
require "tabhistory"
-- Add greasemonkey-like javascript userscript support
require "userscripts"
-- Add bookmarks support
require "bookmarks"
-- Add download support
require "downloads"
require "downloads_chrome"
-- Add vimperator-like link hinting & following
-- (depends on downloads)
require "follow"
-- To use a custom character set for the follow hint labels un-comment and
-- modify the following:
local s = follow.styles
follow.style = s.sort(s.reverse(s.charset("asdfqwerzxcv"))) -- I'm a lefty
-- Add command history
require "cmdhist"
-- Add search mode & binds
require "search"
-- Add ordering of new tabs
require "taborder"
-- Save web history
require "history"
require "history_chrome"
-- Add command completion
require "completion"
-- NoScript plugin, toggle scripts and or plugins on a per-domain basis.
-- `,ts` to toggle scripts, `,tp` to toggle plugins, `,tr` to reset.
-- Remove all "enable-scripts" & "enable-plugins" lines from your
-- domain_props table (in config/globals.lua) as this module will conflict.
--require "noscript"
require "follow_selected"
require "go_input"
require "go_next_prev"
require "go_up"
-----------------------------
-- End user script loading --
-----------------------------
-- Restore last saved session
local w = (session and session.restore())
if w then
    for i, uri in ipairs(uris) do
        w:new_tab(uri, i == 1)
    end
else
    -- Or open new window
    window.new(uris)
end
-------------------------------------------
-- Open URIs from other luakit instances --
-------------------------------------------
if unique then
    unique.add_signal("message", function (msg, screen)
        local cmd, arg = string.match(msg, "^(%S+)%s*(.*)")
        local w = lousy.util.table.values(window.bywidget)[1]
        if cmd == "tabopen" then
            w:new_tab(arg)
        elseif cmd == "winopen" then
            w = window.new((arg ~= "") and { arg } or {})
        end
        w.win:set_screen(screen)
    end)
end
-- vim: et:sw=4:ts=8:sts=4:tw=80


-- no debconf information



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to