Setting to default photo view program (Linux)

Ideas for improvements and requests for new features in XnView MP

Moderators: XnTriq, xnview

Post Reply
z915374
Posts: 2
Joined: Sat Jan 17, 2009 7:05 pm

Setting to default photo view program (Linux)

Post by z915374 » Sat Jan 17, 2009 7:14 pm

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 ?

marsh
XnThusiast
Posts: 2443
Joined: Sun May 15, 2005 6:31 am

Post by marsh » Tue Jan 20, 2009 4:06 pm

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

z915374
Posts: 2
Joined: Sat Jan 17, 2009 7:05 pm

Post by z915374 » Thu Jan 22, 2009 1:43 am

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.

marsh
XnThusiast
Posts: 2443
Joined: Sun May 15, 2005 6:31 am

Post by marsh » Thu Jan 22, 2009 5:18 am

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.

Post Reply