Fails to open images with spaces in names on Ubuntu
Posted: Sat Jan 26, 2013 9:53 pm
I set xnview as my default image viewer so I can double click files to open them.
I noticed if you open any file with spaces in its name, xnview will open with a blank white screen, but works for files with no spaces. I tested the following commands in the terminal to confirm this:
xnview /home/jade/Pictures/nospace.png - xnview window opens and displays the image "nospace.png"
xnview /home/jade/Pictures/Clipboard 1.png - blank xnview window opens with no controls (see attachment)
console output:
I figured adding quotation marks around the file path would fix it, but I get the same result (blank window)
test commands:
xnview "/home/jade/Pictures/Clipboard 1.png" - blank window opens with no controls
xnview "/home/jade/Pictures/nospace.png" - blank window again
Specs:
Operating system - Ubuntu 12.04.1 x64
XnViewMP Version 0.51 (Jun 26 2012)
Blank window snapshot:

I noticed if you open any file with spaces in its name, xnview will open with a blank white screen, but works for files with no spaces. I tested the following commands in the terminal to confirm this:
xnview /home/jade/Pictures/nospace.png - xnview window opens and displays the image "nospace.png"
xnview /home/jade/Pictures/Clipboard 1.png - blank xnview window opens with no controls (see attachment)
console output:
Code: Select all
XNVIEW restoreGeometry before : 640 480
XNVIEW restoreGeometry after : 856 603
QMetaObject::invokeMethod: No such method MyTabBar::layoutTabs()
QSslSocket: cannot resolve SSLv2_client_method
QSslSocket: cannot resolve SSLv2_server_method
w.init
XNVIEW 1 ok
## XNVIEW RESIZE : 856 603
## MyTabWidget :: resizeEvent : 856 603
XNVIEW 2 ok
w.start
test commands:
xnview "/home/jade/Pictures/Clipboard 1.png" - blank window opens with no controls
xnview "/home/jade/Pictures/nospace.png" - blank window again
Specs:
Operating system - Ubuntu 12.04.1 x64
XnViewMP Version 0.51 (Jun 26 2012)
Blank window snapshot:
