Feature request #8428

QGIS should be pinnable

Added by Jonathan Moules over 11 years ago. Updated about 6 years ago.

Status:Closed
Priority:Normal
Assignee:-
Category:Unknown
Pull Request or Patch supplied:No Resolution:fixed/implemented
Easy fix?:No Copied to github as #:17197

Description

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:

qgis-dev-bin.exe
"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.

Associated revisions

Revision 801184a8
Added by Jürgen Fischer almost 8 years ago

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
batch files.

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.

History

#1 Updated by Nathan Woodrow over 11 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 11 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. :-)

#3 Updated by Nathan Woodrow over 11 years ago

It might not be a issue for a release build because we start them differently.

#5 Updated by Jürgen Fischer over 10 years ago

  • Subject changed from Pinned QGIS doesn't start to QGIS should be pinnable
  • Tracker changed from Bug report to Feature request

#6 Updated by Giovanni Manghi over 7 years ago

  • Easy fix? set to No

#7 Updated by Jürgen Fischer about 7 years ago

  • Category set to Unknown

#8 Updated by Jürgen Fischer about 6 years ago

  • Status changed from Open to Closed
  • Description updated (diff)
  • Resolution set to fixed/implemented

implemented in 801184a8a14

Also available in: Atom PDF