Feature request #8428
QGIS should be pinnable
|Pull Request or Patch supplied:||No||Resolution:||fixed/implemented|
|Easy fix?:||No||Copied to github as #:||17197|
Windows 7, x64 - QGIS weekly - a13cdf8
If I pin QGIS to my taskbar, I can't actually run it from there. Whenever I try to I get:
"The program can't start because qgis_code.dll is missing from your computer. Try reinstalling the program to fix this problem."
The desktop shortcut works fine. I assume this is a result of the way QGIS starts - the desktop shortcut is to a batch fine. When pinning, Windows automatically allocates the .exe file itself.
osgeo4w: add a minimal exe wrapper to initialize the enviroment and load
qgis_app.dll (inspired by Nathan's PR #4156)
On install each shortcut/configuration gets a own copy of the (small)
exe. That exe is started through the batch file that originally was
used to start the app at runtime. Argument --exit will cause the wrapper
to just dump the environment to an .env file next to the copy of the
.exe. The created shortcuts now point at those .exes instead of the
At runtime the .exes source their .env file to get a working environment
to run QGIS (ie. qgis_app.dll). This for example allows the application
to be pinned to the taskbar and avoids the of necessity of batch files
at runtime to start the app.
#1 Updated by Nathan Woodrow over 10 years ago
When you pin QGIS Windows is pinning the running exe not the batch file that was used to start it. I don't know if there is a way around this from our point of view because Windows is doing the pinning.
What you can do is right click on the pined exe and change the properties for the pinned exe.
Update to the bat file
#2 Updated by Jonathan Moules over 10 years ago
Thanks Nathan, this does resolve it (I didn't know you could edit pinned properties until now), but it is a workaround. In the longer term it might be an idea to change how QGIS is started so that it works out the box.
Unless that already happens with the end-user builds, in which case ignore me. :-)