XnView portable version with Ghostscript
Moderators: XnTriq, helmut, xnview
-
- XnThusiast
- Posts: 4114
- Joined: Sun Apr 29, 2012 9:45 am
- Location: Cheltenham, U.K.
XnView portable version with Ghostscript
Is there a way to put an XnView ZIP version on a USB memory stick and then add Ghostscript to provide PDF support, for example?
The answer seems to be no...
If it isn’t currently possible, could a minor change to the xnview.exe code, so that when it fails to find the path to Ghostscript where it currently looks [the registry?] it looks in an alternative, specified, location provide a simple solution?
[A folder ‘gs’ in the xnview folder, or beside the xnview folder, into which Ghostscript could be extracted, or certain files copied ]
The answer seems to be no...
If it isn’t currently possible, could a minor change to the xnview.exe code, so that when it fails to find the path to Ghostscript where it currently looks [the registry?] it looks in an alternative, specified, location provide a simple solution?
[A folder ‘gs’ in the xnview folder, or beside the xnview folder, into which Ghostscript could be extracted, or certain files copied ]
-
- Author of XnView
- Posts: 44345
- Joined: Mon Oct 13, 2003 7:31 am
- Location: France
Re: XnView portable version with Ghostscript
you can set XNVIEW_GS_DLL/XNVIEW_GS_LIB variable
Pierre.
-
- XnThusiast
- Posts: 4114
- Joined: Sun Apr 29, 2012 9:45 am
- Location: Cheltenham, U.K.
Re: XnView portable version with Ghostscript
Thanks, still looking for those variables, in XnView, GS or Windows?xnview wrote:you can set XNVIEW_GS_DLL/XNVIEW_GS_LIB variable
The idea is to create a USB drive that could be plugged into any computer, for example in a public library, where the drive letter could change and access to system files may be locked...
Files on the USB drive could be edited easily, but would GS still function if the drive letter changed?
A change in the xnview code to also look for GhostScript in an alternative, relative, location before displaying the 'not found' message would provide a fully portable solution?
-
- Author of XnView
- Posts: 44345
- Joined: Mon Oct 13, 2003 7:31 am
- Location: France
-
- XnThusiast
- Posts: 4114
- Joined: Sun Apr 29, 2012 9:45 am
- Location: Cheltenham, U.K.
Re: XnView portable version with Ghostscript
xnview wrote: you can set XNVIEW_GS_DLL/XNVIEW_GS_LIB variable
Not generally accessible on public computers for security reasons...xnview wrote:environment variable of windows
The ideal would be to be able to plug a USB drive with XnView ZIP and Ghostscript on it into any computer and have it work immediately...
Irfanview provides a means to set a custom path to Ghostscript, but it is necessary to set up the full path every time, a pain for me and a larger obstacle for others. And Irfanview isn’t XnView...
Could xnview, before displaying the ‘Ghostscript not found’ message, check for the presence of Ghostscript on the USB drive?
-
- Author of XnView
- Posts: 44345
- Joined: Mon Oct 13, 2003 7:31 am
- Location: France
Re: XnView portable version with Ghostscript
check for example a gs subfolder in the Addon folder??
Pierre.
-
- XnThusiast
- Posts: 4114
- Joined: Sun Apr 29, 2012 9:45 am
- Location: Cheltenham, U.K.
Re: XnView portable version with Ghostscript
Yes, anything like that which would work...xnview wrote:check for example a gs subfolder in the Addon folder??
-
- Author of XnView
- Posts: 44345
- Joined: Mon Oct 13, 2003 7:31 am
- Location: France
Re: XnView portable version with Ghostscript
ok, i'll add Plugins\gs subolder checkingcday wrote:Yes, anything like that which would work...xnview wrote:check for example a gs subfolder in the Addon folder??
Pierre.
-
- Posts: 99
- Joined: Wed Jan 26, 2005 11:44 pm
Re: XnView portable version with Ghostscript
I will add some wishes here as they are related to portability.
Will be good if "Resent files list" ( in "Small toolbar" in XnView Classic) can accept relative pats.
Options dialog accept relative paths, so I hope it's not a hard work to make this for "Resent files list" too.
For example XnViewMP accepts relative pats in same list,
but there is a small bug that has to be corrected - Folder tree is NOT updated to current folder if we open a relative path.
Will be good if "Resent files list" ( in "Small toolbar" in XnView Classic) can accept relative pats.
Options dialog accept relative paths, so I hope it's not a hard work to make this for "Resent files list" too.
For example XnViewMP accepts relative pats in same list,
but there is a small bug that has to be corrected - Folder tree is NOT updated to current folder if we open a relative path.
-
- XnThusiast
- Posts: 4114
- Joined: Sun Apr 29, 2012 9:45 am
- Location: Cheltenham, U.K.
Re: XnView portable version with Ghostscript
cday wrote:Is there a way to put an XnView ZIP version on a USB memory stick and then add Ghostscript to provide PDF support?
Thanks for XnView 2.32 but so far I have had no success with it...xnview wrote:ok, i'll add Plugins\gs subfolder checking
If the GS files are placed in X:\xnview\plugins\gs the error message is 'Format of the file could not be determined...' even with the ini file in the XnView folder and 'Display all image file types' enabled.
If the GS files are placed in \gs\gs9.15 as on my desktop, the error message is 'Ghostscript not found...'
Only relative paths on the usb drive are used and there is no dependency on any other file or variable??
Am I missing something
-
- Posts: 127
- Joined: Thu Feb 10, 2011 1:52 pm
- Location: Hamburg
Re: XnView portable version with Ghostscript
Dunno, but I'm missing something. There is a Portable Apps ghostscript 9.15. So if you have U:\really\weird\apps\XnViewPortable the application directory of XnView would be U:\really\weird\apps\XnViewPortable\App\XnView, and ghostscript should be in U:\really\weird\apps\TBD1\App\TBD2. What are you up to with a special U:\really\weird\apps\XnViewPortable\App\XnView\plugins\gs folder?cday wrote:Am I missing something
-
- XnThusiast
- Posts: 4114
- Joined: Sun Apr 29, 2012 9:45 am
- Location: Cheltenham, U.K.
Re: XnView portable version with Ghostscript
I would rather use a standard XnView ZIP with standard Ghostscript to create something that could be plugged into a public computer and work immediately... I did look at Portable Apps but that didn't work for me even after searching the forum, but XnView remains my first choice.omniplex wrote:There is a Portable Apps ghostscript 9.15. So if you have U:\really\weird\apps\XnViewPortable the application directory of XnView would be U:\really\weird\apps\XnViewPortable\App\XnView, and ghostscript should be in U:\really\weird\apps\TBD1\App\TBD2.
Have you read the earlier posts of the thread?What are you up to with a ... plugins\gs folder?
-
- Posts: 127
- Joined: Thu Feb 10, 2011 1:52 pm
- Location: Hamburg
Re: XnView portable version with Ghostscript
Not really, but you can create your own XnViewPortable.ini in the directory of XnViewPortable.exe, and (untested) that INI can define its own startup environment in an [Environment] section. -cday wrote:Have you read the earlier posts of the thread?
Just in case, do you test the 32bits version of GhostScript? It's a major headache, looking at my "start GS" script, it might need GS=gswin32 GSC=gswin32c and a temporary entry for its gostscript\bin subdirectory at the end of the PATH.
-
- XnThusiast
- Posts: 4114
- Joined: Sun Apr 29, 2012 9:45 am
- Location: Cheltenham, U.K.
Re: XnView portable version with Ghostscript
I'd rather use a standard XnView ZIP if possible for simplicity, and I'm thinking that if the changes needed are easy to make they could later be incorporated in XnViewMP as well...omniplex wrote:... you can create your own XnViewPortable.ini in the directory of XnViewPortable.exe, and (untested) that INI can define its own startup environment in an [Environment] section.
Yes, GS 32-bit for XnView 32-bit...omniplex wrote:... do you test the 32bits version of GhostScript? It's a major headache, looking at my "start GS" script, it might need GS=gswin32 GSC=gswin32c and a temporary entry for its gostscript\bin subdirectory at the end of the PATH.
I'm hoping for a response from Pierre on the immediate issue when he has time...
-
- Author of XnView
- Posts: 44345
- Joined: Mon Oct 13, 2003 7:31 am
- Location: France
Re: XnView portable version with Ghostscript
You have all the files of gs9.15 folder in Plugins\gs?cday wrote: If the GS files are placed in X:\xnview\plugins\gs the error message is 'Format of the file could not be determined...' even with the ini file in the XnView folder and 'Display all image file types' enabled.
Pierre.