<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
You're a genius.<br>
<br>
Wrapper script works great.<br>
<br>
When I had a similar issue with evolution using Evince to open pdfs, it
never produced an error nor ever loaded evince either. Made a wrapper
for Evince too, and I can open PDFs with that from evolution now too.<br>
<br>
I asked this group about evince, maybe a year or two ago. I'm sure that
maintainer told me the same thing, but this time it made sense to me :)<br>
<br>
So to review I made two scripts.<br>
<br>
/opt/csw/bin/gsview.sh<br>
#!/bin/sh<br>
unset LD_LIBRARY_PATH<br>
exec /opt/csw/bin/gsview "$@"<br>
<br>
and<br>
<br>
/opt/csw/bin/evince.sh<br>
#!/bin/sh<br>
unset LD_LIBRARY_PATH<br>
exec /opt/csw/bin/evince "$@"<br>
<br>
Thanks again.<br>
<br>
Aaron.<br>
<br>
James Lee wrote:
<blockquote cite="mid:20080311.21310100.1002631096@gyor.oxdrove.co.uk"
type="cite">
<pre wrap="">Original Message dated 11/03/08, 20:30:41
Author: Aaron Wilson <a class="moz-txt-link-rfc2396E" href="mailto:aaron@ernieball.com"><aaron@ernieball.com></a>
Re: Re: [csw-users] Issues with gsview:
</pre>
<blockquote type="cite">
<pre wrap="">Yah I guess getting gsview to show up in evolution would be needed. :)
</pre>
</blockquote>
<pre wrap=""><!---->
</pre>
<blockquote type="cite">
<pre wrap="">All I do is right click on a pdf I have saved to disk somewhere.
Select "Open With" -> "Other Application"
Click on "Go There"
</pre>
</blockquote>
<pre wrap=""><!---->
I can't find that on the evolution menus. If I save it to disc
how does it affect evolution? Are you using a Gnome global setting?
I'm not using Gnome, just Evolution in dabble mode - I'm not a user.
I like to start by reproducing a problem but never mind I might have
the answer. Look in /usr/bin/evolution:
$ cat /usr/bin/evolution
#!/bin/sh
prefix=/usr
exec_prefix=${prefix}
PATH=/usr/bin:/usr/gnome/bin:${PATH}
GNOME2_PATH=/usr:/usr/gnome
LD_LIBRARY_PATH=/usr/lib:/usr/gnome/lib:${LD_LIBRARY_PATH}
export LD_LIBRARY_PATH GNOME2_PATH PATH
exec /usr/lib/evolution-1.4 "$@"
See it sets LD_LIBRARY_PATH, that sets it for gsview too when gsview
is called from evolution. This is why LD_LIBRARY_PATH is a bad idea
as it overrides the RPATH needed by gsview and libgs.so. Possibly
why it trys to use the wrong libiconv. Try creating a wrapper script
that calls gsview and call that wrapper script from evolution,
something like this (please check/think first, this is untested):
#!/bin/sh
unset LD_LIBRARY_PATH
exec /opt/csw/bin/gsview "$@"
James.
_______________________________________________
users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:users@lists.blastwave.org">users@lists.blastwave.org</a>
<a class="moz-txt-link-freetext" href="https://lists.blastwave.org/mailman/listinfo/users">https://lists.blastwave.org/mailman/listinfo/users</a>
</pre>
</blockquote>
</body>
</html>