It is currently Sun Jun 30, 2024 3:31 am


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: GIMP Portable and File Associations
PostPosted: Mon Jul 29, 2019 8:23 pm  (#1) 
Offline
New Member

Joined: Jul 29, 2019
Posts: 2
GIMP Version: 2.8.12
Operating System: Windows
OS Version: 10
GIMP Experience: Intermediate Level

List any ERROR messages you received:
Error in the Command Line
Argument 2 is not recognized.
Quit the LANG_Gimp program.




I've been using GIMP for years, and use GIMPPortable from my Dropbox. After awhile, I had upgraded to 2.10 until I decided to try a technique using Web...Slice, only to discover it wasn't there. I then tumbled down the rabbit hole that is "python in 2.10.8 is borked".

So, I switched from the PortableApps version to samj's version. The only problem is, I can't associate image files with GIMP.

If I associate it with "GIMP.exe" in the main folder, I get "Argument 2 is not recognized." However, if I associate it directly to "gimp-2.10.exe" in the bin folder, all the settings go to "%appdata%"...which kills the whole point of "Portable".

I've manually attempted
"{path}\GIMPPortable\GIMP.exe" "{path}\GIMPPortable\test.jpg"

And get the same error. I'm assuming it's because GIMP.exe calls into the "Parametres_Gimp_Lang.ini" file, and it doesn't like the command line argument that is the file path.

I've seen other posts in the forum on this, recommending "rerunning the installer", but with the samj file...there's no installer. It's a compressed file.

Help appreciated in advance.


Attachments:
2019-07-29 21_04_09-F__Dropbox_Anthony_Projects_Photoshoppery.png
2019-07-29 21_04_09-F__Dropbox_Anthony_Projects_Photoshoppery.png [ 5.52 KiB | Viewed 3471 times ]
Share on Facebook Share on Twitter Share on Orkut Share on Digg Share on MySpace Share on Delicious Share on Technorati
Top
 Post subject: Re: GIMP Portable and File Associations
PostPosted: Tue Jul 30, 2019 7:16 am  (#2) 
Offline
GimpChat Member

Joined: Mar 04, 2011
Posts: 2435
I can see the problem with samj's portable. One way is use a batch file to start Gimp bypassing the Gimp (language) starter exe

something like this:

;; Gimp portable folder Gimp-2.10.12_Portable-32-64bit-Win-V2
;; change paths to suit your installation

SET GIMP2_DIRECTORY=E:\Gimp-2.10.12_Portable-32-64bit-Win-V2\Preferences

SET GIMP2_DATADIR=E:\Gimp-2.10.12_Portable-32-64bit-Win-V2\share\gimp\2.0

SET GIMP2_LOCALEDIR=E:\Gimp-2.10.12_Portable-32-64bit-Win-V2\share\locale

SET GIMP2_PLUGINDIR=E:\Gimp-2.10.12_Portable-32-64bit-Win-V2/lib\gimp\2.0\plug-ins

SET GIMP2_SYSCONFDIR=E:\Gimp-2.10.12_Portable-32-64bit-Win-V2\etc

start E:\Gimp-2.10.12_Portable-32-64bit-Win-V2\bin\gimp-2.10.exe %1


A short video demo of it in action. https://youtu.be/_UVfpw4V_Nc Duration not quite 4 minutes.

Hopefully there is a better way. Please do not ask difficult questions, I am a long time linux user and have go back to those DOS times. My memory is not too good these days ;)

_________________
Image


Top
 Post subject: Re: GIMP Portable and File Associations
PostPosted: Thu Aug 01, 2019 1:05 pm  (#3) 
Offline
New Member

Joined: Jul 29, 2019
Posts: 2
Sorry I didn't get back to you, but yes, I did end up using your suggestion. It's not the cleanest and of course there's the quick pop-up when the batch file runs, but it works associating all the image types to the batch file.

I did however end up editing it so that it uses the batch file as the starting directory so I don't have to use one file at work (which is on a C: drive) and one at home (where it's on my F: drive):

SET GIMP2_DIRECTORY=%~dp0\Preferences

SET GIMP2_DATADIR=%~dp0\share\gimp\2.0

SET GIMP2_LOCALEDIR=%~dp0\share\locale

SET GIMP2_PLUGINDIR=%~dp0\lib\gimp\2.0\plug-ins

SET GIMP2_SYSCONFDIR=%~dp0\etc

start %~dp0\bin\gimp-2.10.exe %1


And then it works just fine. Thanks so much for your assistance!


Top
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC - 5 hours [ DST ]


   Similar Topics   Replies 
No new posts Attachment(s) GIMP Portable

11

No new posts Attachment(s) Samj has released 2.10.16 portable for windows

17

No new posts WMF plug-in pour Gimp 2.10.13 - 2.10.12 Portable

2

No new posts Partha released portable Gimp 2.10.18

1

No new posts Attachment(s) Samj has released 2.10.21 portable for windows

5



* Login  



Powered by phpBB3 © phpBB Group