Your message dated Mon, 15 Mar 2021 09:27:48 +0100
with message-id <[email protected]>
and subject line Re: Bug#547090: urlCommand "sensible-browser '%s'" causes
unexpected EOF
has caused the Debian Bug report #547090,
regarding urlCommand "sensible-browser '%s'" causes unexpected EOF
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
547090: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=547090
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
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...
--- End Message ---
--- Begin Message ---
Control: fixed 547090 3.04+git20210103-3
I'm not sure when this was fixed, but my testing with the above version
shows that none of the mentioned issues remain (perhaps except the
feature request to right click: copy URL to clipboard, but selecting and
pasting a spelled-out URL as text works fine).
Florian
--- End Message ---