0.51 Ubuntu: Can't open files containing spaces

Ideas for improvements and requests for new features in XnView MP

Moderators: helmut, XnTriq, xnview

Post Reply
brigantino2
Posts: 8
Joined: Thu Aug 23, 2012 7:17 am

0.51 Ubuntu: Can't open files containing spaces

Post 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
User avatar
xnview
Author of XnView
Posts: 46257
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Can't open files containing spaces

Post by xnview »

ubuntu 64bits?
Pierre.
brigantino2
Posts: 8
Joined: Thu Aug 23, 2012 7:17 am

Re: Can't open files containing spaces

Post by brigantino2 »

yes :)
User avatar
xnview
Author of XnView
Posts: 46257
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Can't open files containing spaces

Post by xnview »

Do you have installed with .deb?
Pierre.
brigantino2
Posts: 8
Joined: Thu Aug 23, 2012 7:17 am

Re: Can't open files containing spaces

Post by brigantino2 »

I think so, as far as I remember
User avatar
xnview
Author of XnView
Posts: 46257
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Can't open files containing spaces

Post by xnview »

brigantino2 wrote:I think so, as far as I remember
There is a little problem in the xnview script that launch XnViewMP
Pierre.
User avatar
CreativeWorld
Posts: 145
Joined: Fri Dec 30, 2011 7:08 pm

Re: Can't open files containing spaces

Post 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?
User avatar
xnview
Author of XnView
Posts: 46257
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Can't open files containing spaces

Post 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
Pierre.
User avatar
CreativeWorld
Posts: 145
Joined: Fri Dec 30, 2011 7:08 pm

Re: Can't open files containing spaces

Post 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?
User avatar
xnview
Author of XnView
Posts: 46257
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Can't open files containing spaces

Post by xnview »

You can change in the /usr/sbin/xnview script, $dirname/xnview "$@"
Pierre.
mdalacu
Posts: 36
Joined: Mon May 31, 2010 6:41 pm

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

Post 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
Post Reply