Fix #112729: Update pinned blender shortcut #113859

Merged
Ray molenkamp merged 8 commits from LazyDodo/blender:tmp_pin_fix into blender-v4.0-release 2023-11-01 01:45:02 +01:00

8 Commits

Author SHA1 Message Date
Ray molenkamp f44b9da425 fix missing declare
buildbot/vexp-code-patch-coordinator Build done. Details
2023-10-31 17:15:59 -06:00
Ray molenkamp 37c8f86a06 add missing license headers + comment fix
buildbot/vexp-code-patch-coordinator Build done. Details
2023-10-30 07:38:08 -06:00
Ray molenkamp 07218dac35 Merge branch 'blender-v4.0-release' into tmp_pin_fix 2023-10-30 14:32:04 +01:00
Ray molenkamp 8b752e905b Merge remote-tracking branch 'origin/blender-v4.0-release' into tmp_pin_fix 2023-10-23 08:00:31 -06:00
Ray molenkamp c6364a81ea fix copyright header 2023-10-18 21:58:26 -06:00
Ray molenkamp 2f5ffedb65 codestyle
buildbot/vexp-code-patch-coordinator Build done. Details
2023-10-17 10:47:15 -06:00
Ray molenkamp 862b389ca7 make format 2023-10-17 10:42:43 -06:00
Ray molenkamp c002d44924 Fix #112729: Update pinned blender shortcut
Windows allows people to pin an application to their taskbar, when a
user pins blender, the data we set in
`GHOST_WindowWin32::registerWindowAppUserModelProperties` is used
which includes the path to the `blender-launcher.exe`. Now once that
shortcut is created on the taskbar, this will never be updated, if
people remove blender and install it again to a different path
(happens often when using nightly builds) this leads to the
situation where the shortcut on the taskbar points to a no longer
existing blender installation. Now you may think, just un-pin and
re-pin that should clear that right up! It doesn't, it'll keep using
the outdated path till the end of time and there's no window API call
we can do to update this information. However this shortcut is stored
in the user profile in a sub-foder we can easily query, from there, we
iterate over all files, look for the one that has our appid in it, and
when we find it, update the path to the blender launcher to the
current installation, bit of a hack, but Microsoft seemingly offers no
other way to deal with this problem.
2023-10-17 10:34:11 -06:00