summaryrefslogtreecommitdiffstats
path: root/examples/widgets/effects/lighting/lighting.cpp
diff options
context:
space:
mode:
authorLaszlo Agocs <laszlo.agocs@qt.io>2021-09-28 12:52:15 +0200
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2021-10-08 09:07:25 +0000
commit2fc4a1b53042b69bdb745e2e69c861eecf945b3c (patch)
treed0fcf5db653bd69b3a4fed1d49f6dc94b057d469 /examples/widgets/effects/lighting/lighting.cpp
parente45db3ddeb5f0457146746cb131d0f138f8beeae (diff)
gl: Try the local CacheLocation when the shared one fails
We prefer the shared cache path, because there is no reason to give up benefitting from sharing the content between applications. If that path is not QFileInfo().isWritable(), we fall back to the local cache path. However, there are reportedly systems with security solutions such as AppArmor where the writable check passes and yet attempting to create a file still fails. Then there is no cache in effect, because nothing ever gets written out. Handle this better: if writing the file fails and we still use our first choice, the global cache location, fall back to the secondary choice (the app-local path) and try again. Fixes: QTBUG-96789 Change-Id: Ifea32e9af0cf85aa70f3069256ed3d6a7e2fbe90 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Dalton Durst <dalton@ubports.com> Reviewed-by: Andy Nichols <andy.nichols@qt.io> (cherry picked from commit 46e6a9a759ae89f905107ccad191ca5ddf442e53) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'examples/widgets/effects/lighting/lighting.cpp')
0 files changed, 0 insertions, 0 deletions