You are not logged in.
Until recently I used firefox as my default web browser. I set evince as the default pdf viewer. This way I could have a quick glance at it and decide wether I wanted to save it or not. I started to use uzbl and luakit but I can't figure out how to set evince as a default document viewer. Is this possible? If not, are there other lightweight web browsers where it is possible tot set evince as the default document viewer?
Offline
Hi,
I think you should do it with QupZilla, try it.
Offline
I suspect it is possible with both of those, I know it is with luakit.
Here's a function I put in a config file which is included in rc.lua, this function cane react to mime types - I only have two set, one is pdf. I use mupdf here, but you could just replace that with evince:
webview.init_funcs.mime_decision = function (view, w)
view:add_signal("mime-type-decision", function (v, uri, mime)
info("Requested link: %s (%s)", uri, mime)
if mime == "application/pdf" then
os.execute("curl " .. uri .. " > /tmp/luakit_pdf && mupdf /tmp/luakit_pdf &")
return false
elseif mime == "application/ogg" then
os.execute("mplayer " .. uri .. " &")
return false
end
end)
end"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline