Package: xpdf-common
Version: 3.02-1.4+lenny1
File: /etc/xpdf/xpdfrc
X-Debbugs-Cc: [email protected]

Regarding
urlCommand      "sensible-browser '%s'"
well, did you know it produces
sh: -c: line 0: unexpected EOF while looking for matching `''
sh: -c: line 1: syntax error: unexpected end of file
you'll see it in the window where you started xpdf.

It is caused by doing things like
$ sh -c "'mmmm"
sh: -c: line 0: unexpected EOF while looking for matching `''
sh: -c: line 1: syntax error: unexpected end of file

You see, there is a bug in xpdf, wherein
there is just no way to get that final ' into xpdf's brain.
One can backslash it all one wants, but it won't work.

A workaround is to use just
urlCommand      "sensible-browser %s"
in one's ~/.xpdfrc while one awaits a fix.

However, xpdf then blocks until sensible-browser finishes anyway. Who
could stand that? I tried adding &, nohup, etc. but just got into deeper
trouble. Ah, the key is to have sensible-browser already running before
one starts clicking on URLs in xpdf... that is if sensible-browser is
Firefox at least. You might want to add that in a comment.

Oh and by the way, further experiments, with
urlCommand      "echo === %s ==== | wc; echo %s|od"
=== http://www.gsdi.org/newslist/gsdisubscribe.asp

show that everything east of %s is thrown in the trash can. No wonder.

By the way, you need to add right-mouse: copy url, like Firefox.
We don't only want to browse URLs, we might want to also copy them to
the clipboard.

By the way, still can't "cut and paste" text from xpdf to the clipboard...



-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to