[osgeo4w-dev] [osgeo4w] #60: QGIS Start menu shortcut doesn't work with non-default install directory

OSGeo4W trac_osgeo4w at osgeo.org
Fri Feb 20 20:57:09 EST 2009


#60: QGIS Start menu shortcut doesn't work with non-default install directory
---------------------+------------------------------------------------------
 Reporter:  mwtoews  |       Owner:  osgeo4w-dev at lists.osgeo.org
     Type:  defect   |      Status:  new                        
 Priority:  major    |   Milestone:                             
Component:  Package  |     Version:                             
 Keywords:  qgis     |  
---------------------+------------------------------------------------------
 My setup is installed in a non-default location C:\gnu\OSGeo4W

 The Start menu item has the correct target (with 2 extra spaces at end??):
 {{{
 C:\gnu\OSGeo4W\bin\qgis.bat
 }}}

 however, when it is selected from the Start menu, I see an error in a cmd
 console:
 {{{
 The system cannot find the path specified.
 }}}
 and a Windows dialog with "Windows cannot find
 'C:\OSGEO4W\apps\qgis\bin\qgis.exe'."

 The problem is with qgis.bat:
 {{{
 @echo off
 SET OSGEO4W_ROOT=C:\OSGeo4W
 call "%OSGEO4W_ROOT%"\bin\o4w_env.bat
 @echo off
 set GDAL_DRIVER_PATH=%OSGEO4W_ROOT%\bin\gdalplugins
 start "Quantum GIS" /B "%OSGEO4W_ROOT%"\apps\qgis\bin\qgis.exe %*
 }}}

 since it assumes that OSGEO4W_ROOT=C:\OSGeo4W which is not always true.

-- 
Ticket URL: <https://trac.osgeo.org/osgeo4w/ticket/60>
OSGeo4W <http://trac.osgeo.org/osgeo4w>
OSGeo4W is the Windows installer for the OSGeo stack.


More information about the osgeo4w-dev mailing list