Page 1 of 1

0.51 Ubuntu: Can't open files containing spaces

Posted: Thu Feb 14, 2013 9:17 am
by brigantino2
Hello,

I'm using XnView (0.51) as my favuorite image viewer on Linux Ubuntu. I've noticed that if you open on an image file, sometimes the XnView window opens but the viewer doesn't start (the window stays blank). I've realized that this happens when you double click on a file whose name or path contains a space.
Thanks for your attention

Ale

Re: Can't open files containing spaces

Posted: Thu Feb 14, 2013 3:03 pm
by xnview
ubuntu 64bits?

Re: Can't open files containing spaces

Posted: Thu Feb 14, 2013 3:20 pm
by brigantino2
yes :)

Re: Can't open files containing spaces

Posted: Fri Feb 15, 2013 3:05 pm
by xnview
Do you have installed with .deb?

Re: Can't open files containing spaces

Posted: Fri Feb 15, 2013 4:30 pm
by brigantino2
I think so, as far as I remember

Re: Can't open files containing spaces

Posted: Mon Feb 18, 2013 2:02 pm
by xnview
brigantino2 wrote:I think so, as far as I remember
There is a little problem in the xnview script that launch XnViewMP

Re: Can't open files containing spaces

Posted: Mon Mar 18, 2013 2:39 am
by CreativeWorld
xnview wrote:There is a little problem in the xnview script that launch XnViewMP
Are you able to fix this problem? When will be fix this problem?

Re: Can't open files containing spaces

Posted: Mon Mar 18, 2013 9:40 am
by xnview
CreativeWorld wrote:
xnview wrote:There is a little problem in the xnview script that launch XnViewMP
Are you able to fix this problem? When will be fix this problem?
with next version, but you can edit the script

Re: Can't open files containing spaces

Posted: Tue Mar 19, 2013 12:06 pm
by CreativeWorld
xnview wrote:
CreativeWorld wrote:
xnview wrote:There is a little problem in the xnview script that launch XnViewMP
Are you able to fix this problem? When will be fix this problem?
with next version, but you can edit the script
Which script? What should I replace?

Re: Can't open files containing spaces

Posted: Wed Mar 20, 2013 3:24 pm
by xnview
You can change in the /usr/sbin/xnview script, $dirname/xnview "$@"

Re: 0.51 Ubuntu: Can't open files containing spaces

Posted: Sun Mar 31, 2013 6:42 pm
by mdalacu
It is working, thank you.
This is the modified file:

Code: Select all

#!/bin/sh

export LD_LIBRARY_PATH=/opt/XnView/lib
export QT_PLUGIN_PATH=/opt/XnView/lib

if [ $# -lt 1 ]; then
  /opt/XnView/XnView
else
  /opt/XnView/XnView "$@"
fi