You are not logged in.

#1 2013-06-29 10:16:36

lnx
Member
Registered: 2009-11-04
Posts: 108

lightweight web browsers and pdf files

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

#2 2013-06-29 12:54:19

eyome
Member
Registered: 2012-01-06
Posts: 29

Re: lightweight web browsers and pdf files

Hi,

I think you should do it with QupZilla, try it.

Offline

#3 2013-06-29 12:57:10

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,550
Website

Re: lightweight web browsers and pdf files

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

Board footer

Powered by FluxBB