[Osgeo4w-trac] Re: [osgeo4w] #36: change app launch bat files to
call o4w_env.bat
OSGeo4W
trac_osgeo4w at osgeo.org
Wed Feb 8 17:44:11 EST 2012
#36: change app launch bat files to call o4w_env.bat
-------------------+--------------------------------------------------------
Reporter: maphew | Owner: maphew
Type: defect | Status: closed
Priority: major | Component: Package
Version: | Resolution: fixed
Keywords: |
-------------------+--------------------------------------------------------
Changes (by maphew):
* status: assigned => closed
* resolution: => fixed
Comment:
Closing ticket. This is best handled by updating the
[PackagingInstructions#Applicationbatchfiletemplate Packaging Instructions
# batch file template] with the recommended approach (done) and letting
the maintainers adjust as suits them.
Also a tweak to the original suggestion to avoid hard coding osgeo4w_root:
If `bin\foo.bat` use:
{{{
@echo off
call "%~dp0\o4w_env.bat"
start "Foo window title" /B "%OSGEO4W_ROOT%\bin\foo.exe" %*
@echo on
}}}
If `apps\foo\foo.bat` use:
{{{
@echo off
call "~dp0\..\..\bin\o4w_env.bat
start "Foo window title" /B "%OSGEO4W_ROOT%\apps\foo\foo.exe" %*
@echo on
}}}
--
Ticket URL: <http://trac.osgeo.org/osgeo4w/ticket/36#comment:5>
OSGeo4W <http://trac.osgeo.org/osgeo4w>
OSGeo4W is the Windows installer and package environment for the OSGeo stack.
More information about the Osgeo4w-trac
mailing list