severity 322432 normal
retitle 322432 please document ~/.urlview better
thanks

* Keith Hellman <[EMAIL PROTECTED]>, [2005-08-11 12:37 -0600]:
>  OK, I did this on a fresh etch install (which I just happened to have
>  recently completed).  Here are the results:
>  
>  - was able to replicate your success if I didn't use a ~/.urlview;
>    things worked perfectly.

>  - tried with my original ~/.urlview file (sent in the latest tarball);
>    REPRODUCED BOTH multiple URL entries as well as the trailing newline
>    defect that apparently I alone am experiencing

>  - copied the /etc/urlview/system.urlview to ~/.urlview; things worked
>    perfectly

>  - changed the COMMAND entry of the file to point to my own handler,
>    exactly as it does in my original .urlview; things work perfectly

>  - tested this "new" ~/.urlview on a second machine and things worked
>    perfectly.
  
>  My impression is that there is some munged up logic while processing a
>  user's .urlview, since the your able to see at least the symptom of
>  multiple URLs listed.  

Things seems to be simpler than we think.

urlview reads ~/.urlview OR /etc/urlview/system.urlview.

Try for instance to only specify REGEXP in your user-defined conffile
and you'll notice that urlview will fail to execute url_handler.sh, because
it cannot find it in the current directory.

The first .urlview you sent me was defining only COMMAND. That's why as
soon as you've copied the default system.urlview to ~/.urlview things
worked as expected.

>  Thanks for all your help,

Thank you for your time, and sorry if on the first message I didn't
understand what you were saying. :)

With this mail I'm downgrading the severity and retitling the bug,
because I think that simply stating clearly that it's mandatory to
define both COMMAND and REGEXP in ~/.urlview is enough.

More precisely, the manpage already states it. You may object that it's
not clear at all. Right. :)

quoting urlview(1):
        urlview attempts to read ~/.urlview upon startup.  If this file doesn’t
        exist, it will try to read a system wide file in 
/etc/urlview/system.urlview

*If this file doesn't exist*, it will try to read...

Any suggestion to improve the man page is very welcome.

ciao,
        ema

Attachment: signature.asc
Description: Digital signature

Reply via email to