opening from FileMgr in ViewerMode

Ideas for improvements and requests for new features in XnView MP

Moderators: XnTriq, xnview

Post Reply
hugofant
Posts: 7
Joined: Fri Aug 24, 2007 10:08 am

opening from FileMgr in ViewerMode

Post by hugofant » Wed Nov 11, 2009 8:31 am

Hello again,
tried to open a file directly from filemanger (on doubleclick) as described in this thread:http://newsgroup.xnview.com/viewtopic.php?f=60&t=18770, and it works in principal.
But XnViewMP always starts in BrowserMode - I would prefer in Viewer- or FullScreenMode.
Is this possible and if yes, i would be thankful for a hint.
I'm using the Unixversion, Version 0.21 and Karmic with XFCE.

thanks in advance
Roman

hugofant
Posts: 7
Joined: Fri Aug 24, 2007 10:08 am

Re: opening from FileMgr in ViewerMode

Post by hugofant » Tue Nov 24, 2009 11:53 am

hmm, is the question to stupid or is it simply not possible?

thanks a lot
Roman

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

Re: opening from FileMgr in ViewerMode

Post by marsh » Tue Nov 24, 2009 12:52 pm

This is the script I was using last to open/associate with.
In Thunar file-manager, it should show the following properties:
[x]Allow this file to run as a program

Code: Select all

#!/bin/sh
folder=`dirname $0`
LD_LIBRARY_PATH=$folder
export LD_LIBRARY_PATH
QT_PLUGIN_PATH=$folder
export QT_PLUGIN_PATH
$folder/xnview "$@"

Post Reply