Hello Jim, On Wed, Jul 04, 2012 at 11:29:29AM +0100, Jim Maas wrote:
> Another small issue. When I run lyx from terminal it compiles and > then shows me the pdf just fine. When I run lyx directly from icon > on ubuntu linux screen, it compiles ok but gives a "file not found" > error when I try to view the pdf. Any suggestions on how to > fix/correct this? Must be something to do with the paths where lyx > stores the pdf? When you are running from the terminal, your .bashrc (or the resource file of whatever other shell you use) was loaded and your environment is set accordingly. E.g., your localtexmf tree can be found. Unlike that, when you run LyX from an X session, your .bashrc where you possibly set LOCALTEXMF, or alike was not loaded and therefore often your files won't compile properly resulting in errors like you describe. To tackle that, I put this into my ~/.xsessionrc: # include .bashrc if it exists if [ -f "$HOME/.bashrc" ]; then . "$HOME/.bashrc" fi That takes into the scope all the settings you might have set locally, such as $TEXMFLOCAL and related settings. Hopefully this helps a bit. Peter. -- Peter Novak, p...@aronde.net, http://peter.aronde.net/
signature.asc
Description: Digital signature