"Another instance of GIMP is already running"foxcole - August 7, 2007 - 2:01pm
(GIMP 2.2 portable, on Win XP Pro, SP2) Maybe I'm not coming up with the right search terms, but I can't find any information that helps, either in this forum or in the online documentation... I intended to use GIMP the same way I use Photoshop, as an output option for SnagIt screen captures. But it won't let me: "Another instance of GIMP is already running, Please close other instances pf GIMP before launching GIMP portable." (Of course, I get this same message when I try to open a file I've associated to GIMP when there's an image already open.) This means I'd have to shut down GIMP and reload it for every screen capture, which would be a slow way to work when several captures are needed in succession. What I'd like to know is whether there's a way to run more than one instance of GIMP or to open more than one image in the same instance, without having to go through File>Open. I couldn't find anything in the Preferences that would appear to control this and, as noted above, I can't find any help or information that pertains to this. But I also find it difficult to believe that no one else had asked this question, if there's no information on it to be found. --- Meaning, it apparently is not a problem for other people... is it? ( categories: )
|

Hmmm
It should be passing the image off to the already running instance. Let me check the code...
Sometimes, the impossible can become possible, if you're awesome!
.
Make sure it's using gimp-win-remote.exe so it latches on to the running window.
----
Ryan McCue.
Blog.
So all that Airbus-delay trouble over here in Europe is because of YOU!
Simeon.
"If you're not part of the solution, you're part of the precipitate."
Did you mean that for me?
I wasn't sure... was your reply intended for John or for me? If for me, I've no idea how to go about it.
Cheers!
---Fox
Cheers!
---Fox
John
It was for John.
----
Ryan McCue.
Blog.
So all that Airbus-delay trouble over here in Europe is because of YOU!
Simeon.
"If you're not part of the solution, you're part of the precipitate."
Any luck yet?
I realize how busy you must be with all these portable apps to support, and with everything still in development and testing... but I just wondered whether you've had a chance to look into this. Just for insurance, I tried re-downloading and replacing the application on my USB key, but unfortunately it didn't help. (The current download is version 2.2.17.)
Cheers!
---Fox
Cheers!
---Fox
Checked the Code
This is by design at the moment as you can't run another instance of GIMP when one already is running unless you pass a file to it. (And, since 99.9% of the time someone is running it from the PortableApps.com Menu, it will cause an error if it tried to run again.)
I'm looking into adding it into the new launcher I'm working on for it.
You *might* be able to get it to work by pointing the app launching it to gimp-win-remote.exe within the GIMPPortable\App\gimp\bin directory. You'd want to pass the following as parameters (%FILENAME% being the file to open):
gimp-2.2.exe %FILENAME%
You'd have to be sure to launch GIMP Portable first, though. I don't know if this will work or not and can't help you further with it. It's just an idea.
UPDATE - Test Added
I just posted a test launcher. Download GIMPPortable1321.exe and place it in your GIMPPortable directory. It should launch GIMP normally if it's not running, cause GIMP to open a file if it is running and you pass a file and do nothing if it's running and you don't pass a file. It's a beta with just that feature added. It only works in a default directory configuration.
Sometimes, the impossible can become possible, if you're awesome!
It does work, mostly as advertised :)
The beta launches GIMP nicely if it isn't already running, and it opens images in separate windows if the GIMP is already running for images that I open directly (I mean by double-clicking on the files or by choosing File>Open).
If I point SnagIt to the launcher, it opens new screenshots not as separate windows but as layers on the current image. That's at least workable, layers can be collected and saved off later as individual files... and, the main point is there are no errors!
Cheers!
---Fox
Cheers!
---Fox
Regular GIMP
Did you try this with regular gimp (a local install) to see if it has the same issue? I'm instantiating it correctly for opening secondary images so it would seem to be a GIMP issue.
Sometimes, the impossible can become possible, if you're awesome!