Menu

#1 Use SW_HIDE when launching .cmd or .bat files to launch Gimp

open-rejected
nobody
None
5
2006-03-07
2004-09-14
No

Per bugzilla bug #151175, to launch the Gimp without a
console window appearing, we change the application
listed in
HKLM\Software\Microsoft\Windows\CurrentVersion\App
Paths\Gimp-2.0.exe to point to a command script (batch
file), e.g. 'startgimp.cmd'. This script then launches
the Gimp using the START command with /B (no new
console) and redirecting stdout and stderr to nul.
That works and no console window is created for the
Gimp itself, but one for the launching script file IS
created. To prevent this from happening, I modified
gimp-win-remote.c to change the flag passed to
ShellExecute to be SW_HIDE when the application being
launched is a .cmd or .bat file, SW_SHOW otherwise.

Discussion

  • Rob Davenport

    Rob Davenport - 2004-09-14

    Modification to use SW_HIDE when launching .cmd/.bat files.

     
  • Ed Bruck

    Ed Bruck - 2006-03-07
    • status: open --> open-rejected
     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.