Skip to content
Permalink
Browse files

allow opening of qgis projects from windows explorer in OSGeo4W build

git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@11620 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
jef
jef committed Sep 10, 2009
1 parent 88b79a1 commit 968cad9db43d5c372745c94083909b6974dbac52
Showing with 25 additions and 0 deletions.
  1. +1 −0 ms-windows/osgeo4w/package.cmd
  2. +5 −0 ms-windows/osgeo4w/postinstall.bat
  3. +19 −0 ms-windows/osgeo4w/qgis-dev.reg.tmpl
@@ -130,6 +130,7 @@ cd ..
copy postinstall.bat %OSGEO4W_ROOT%\etc\postinstall\%PACKAGENAME%.bat
copy preremove.bat %OSGEO4W_ROOT%\etc\preremove\%PACKAGENAME%.bat
copy %PACKAGENAME%.bat.tmpl %OSGEO4W_ROOT%\bin\%PACKAGENAME%.bat.tmpl
copy qgis-dev.reg.tmpl %OSGEO4W_ROOT%\apps\%PACKAGENAME%\bin\qgis-dev.reg.tmpl

sed -e 's/%OSGEO4W_ROOT:\=\\\\\\\\%/@osgeo4w@/' %OSGEO4W_ROOT%\apps\%PACKAGENAME%\python\qgis\qgisconfig.py >%OSGEO4W_ROOT%\apps\%PACKAGENAME%\python\qgis\qgisconfig.py.tmpl
if errorlevel 1 goto error
@@ -4,3 +4,8 @@ textreplace -std -t apps\qgis-dev\python\qgis\qgisconfig.py
mkdir "%OSGEO4W_STARTMENU%"
xxmklink "%OSGEO4W_STARTMENU%\Quantum GIS (trunk).lnk" "%OSGEO4W_ROOT%\bin\qgis-dev.bat" " " \ "Quantum GIS - Desktop GIS (trunk)" 1 "%OSGEO4W_ROOT%\apps\qgis-dev\icons\QGIS.ico"
xxmklink "%ALLUSERSPROFILE%\Desktop\Quantum GIS (trunk).lnk" "%OSGEO4W_ROOT%\bin\qgis-dev.bat" " " \ "Quantum GIS - Desktop GIS (trunk)" 1 "%OSGEO4W_ROOT%\apps\qgis-dev\icons\QGIS.ico"

set O4W_ROOT=%OSGEO4W_ROOT%
set OSGEO4W_ROOT=%OSGEO4W_ROOT:\=\\%
textreplace -std -t "%O4W_ROOT%\apps\qgis-dev\bin\qgis-dev.reg"
"%WINDIR%\regedit" /s "%O4W_ROOT%\apps\qgis-dev\bin\qgis-dev.reg"
@@ -0,0 +1,19 @@
Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\Quantum GIS Project]
@="Quantum GIS Project"

[HKEY_CLASSES_ROOT\Quantum GIS Project\DefaultIcon]
@="@osgeo4w@\\apps\\qgis-dev\\icons\\qgis.ico"

[HKEY_CLASSES_ROOT\Quantum GIS Project\Shell]

[HKEY_CLASSES_ROOT\Quantum GIS Project\Shell\open]
@=""

[HKEY_CLASSES_ROOT\Quantum GIS Project\Shell\open\command]
@="\"@osgeo4w@\\bin\\qgis-dev.bat\" \"%1\""

[HKEY_CLASSES_ROOT\.qgs]
@="Quantum GIS Project"

0 comments on commit 968cad9

Please sign in to comment.
You can’t perform that action at this time.