summaryrefslogtreecommitdiffstats
path: root/3RDPARTY
diff options
context:
space:
mode:
authorArttu Tarkiainen <arttu.tarkiainen@qt.io>2021-01-05 15:58:14 +0200
committerArttu Tarkiainen <arttu.tarkiainen@qt.io>2021-01-15 09:27:29 +0200
commit57078aec62049ac08c5df94db06c79e956fd0eeb (patch)
treec5b2801f47e03d3b94a714440249a779d9e87637 /3RDPARTY
parent20f354b38b83e4aab107b388fe3c5e2ccd878946 (diff)
Fix InstallIcons and CreateDesktopEntry operations usage as root
The operations write the output files to a valid, writable directory value of XDG_DATA_HOME variable if set, otherwise defaulting to "$HOME/.local/share". This follows the XDG Base Directory Specification but misses the use case of system-wide installation: the XDG_DATA_HOME should only contain base directory relative to which user specific data files should be stored. Prefer a predefined value "/usr/local/share" when launced as root or the internal elevated admin rights handling is active. This should be a sane and well known value for applications installed system-wide, and should not conflict with files extracted by distribution's package management system. Task-number: QTIFW-2093 Change-Id: I96fab3367122e7df783697e07baeb71dfd9b3f0e Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io> Reviewed-by: Katja Marttila <katja.marttila@qt.io>
Diffstat (limited to '3RDPARTY')
0 files changed, 0 insertions, 0 deletions