Frequently Asked Questions¶
- Frequently Asked Questions
- Help somewebsite.com breaks in luakit!
- How do I set the default download location?
- How do I make all downloads save to my default download location without asking?
- Where is the best place to learn more about programming in Lua?
- How do I open an URL in an existing session?
Help somewebsite.com breaks in luakit!¶
Please check other webkit-gtk based browsers to check if the problem is luakit specific. Some of these browsers include: jumanji, uzbl, surf & midori. If the problem only occurs in luakit then please raise an issue for the given website and steps required to reproduce the problem. Alternatively you can notify the developers in the luakit IRC channel.
How do I set the default download location?¶
In your rc.lua after the require "downloads" line add the following:
downloads.default_dir = os.getenv("HOME") .. "/downloads"
How do I make all downloads save to my default download location without asking?¶
In your rc.lua after the require "downloads" line add the following:
downloads:add_signal("download-location", function (_, uri, file)
if not file or file == "" then
file = (string.match(uri, "/([^/]+)$")
or string.match(uri, "^%w+://(.+)")
or string.gsub(uri, "/", "_")
or "untitled")
end
return downloads.default_dir .. "/" .. file
end)
Where is the best place to learn more about programming in Lua?¶
Try the Lua-users Tutorial Directory
How do I open an URL in an existing session?¶
Currently this isn't possible in the official branch. There is a branch using Dbus though. In the future a solution using luasockets is planned.