Page 1 of 1

Setting to default photo view program (Linux)

Posted: Sat Jan 17, 2009 7:14 pm
by z915374
hi, I'm new here

I have download a XnViewMP to my laptop

but how can i set this program to my default photo viewer ?

I'm using a ubuntu 8.10.

I edited the xnview.sh file like this, and changed the path

Code: Select all

#!/bin/sh
LD_LIBRARY_PATH=./
export LD_LIBRARY_PATH
cd /home/ray/Program/XnViewMP
./xnview
when i open the photo, the program is worked, but it can't open the picture file.

How can i edit the xnview.sh ?

Posted: Tue Jan 20, 2009 4:06 pm
by marsh
z915374 wrote: when i open the photo, the program is worked, but it can't open the picture file.
I was able to launch into image view by editing .bashrc (as normal user). The experiment:
1. Added path information to .bashrc

Code: Select all

#Include path to testing libraries
#
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/home/username/foldername ; export LD_LIBRARY_PATH
 
2. Logged out so change would take effect.
3. To avoid conflicts with existing QT4 application on system, I erased the following links in program folder:
libQtCore.so.4 and libQtGui.so.4
4. Using nautilus file manager options, added the program to list of choices

Posted: Thu Jan 22, 2009 1:43 am
by z915374
Thank u.
I can't find .bashrc file in the root folder but I just find these files

/etc/bash.bashrc
/usr/share/base-files/dot.bashrc
/usr/share/doc/adduser/examples/adduser.local.conf.examples/bash.bashrc
/usr/share/doc/adduser/examples/adduser.local.conf.examples/skel/dot.bashrc

I was try to edit the 1st and 2nd files but there is no effect.

Posted: Thu Jan 22, 2009 5:18 am
by marsh
z915374 wrote:Thank u.
I can't find .bashrc file in the root folder but I just find these files
If it is there, it will be hidden in the home user directory. Any good file manager will have option to display them <ctrl + h>. Tests can be made without using any root, super-user/sudo commands.