[Bio-Linux] Acrobat Reader and Nautilus
Dan Swan
dswan at ceh.ac.uk
Mon Feb 9 04:21:34 EST 2004
Hi All,
This tip comes from Rob Anderson at Imperial College. There are issues
using Adobe Acrobat Reader under Bio-Linux (this is installed as:
/usr/local/Acrobat5/bin/acroread
Nautilus, the Bio-Linux file browser does not automagically launch this
application if you double click a pdf. Here is Rob's solution:
**********
You obviously spotted that the LANG environment variable needed to be
set in order to make Acrobat reader work, but she still couldn’t get it
to launch from Nautilus.
I’ve fixed it. Here’s what I did (from the console):
1) Made a script called acroread in her bin directory, containing
#!/bin/zsh
export LANG=C
/usr/local/acrobat/bin/acroread $1
2)Made it executable
3)Opened a PDF file with a command such as ~/bin/acroread my_pdf_file.pdf
Now Nautilus has Acrobat Reader on the list of applications when you
right-click the file and do Open With…, and it is the default, and it
works when you double-click it.
The link refers to the acroread in ~/bin because if you rename the
script, the menu item disappears.
Obviously if you want to put a similar change in for all users, you’d
want to relocate the script. You might also want to adjust to use $*
instead of $1, so that more than one parameter is passed.
(I just bashed something together quickly for testing.)
Rob.
*************
Cheers Rob, we'll have a fix in the image today.
regards,
Dan
--
Dr Dan Swan - Bio-Linux Developer | RHCE
EGTDC, CEH, Mansfield Road, Oxford, OX1 3SR
Tel: 01865 281 658 Fax: 01865 281 696
http://envgen.nox.ac.uk/ | dswan at ceh.ac.uk
More information about the Bio-linux-list
mailing list