[PySide] QProcess not honouring umask
Frank Rueter
frank at ohufx.com
Mon Sep 16 10:38:38 CEST 2024
Hi,
my local umask is set to 0002 so that files created have these default
permissions:
touch test
*-rw-rw-r--.* 1 frank ohufx 0 Sep 16 20:14 test
When I write a file with QProcess it does not seem to look at the umask and
instead produces files without the group having write permissions, i.e.:
*-rw-r--r--.* 1 frank ohufx 0 Sep 16 20:14 q_process_test
How can I make QProcess produce the same permissions as the local umask
dictates?
Or how can I at least manually tell QProcess what permissions to produce?
I am using QtCore.QProcess.systemEnvironment() plus an extra env variable
to then feed into the process via QProcess.setEnvironment(env) - in case it
matters.
Cheers,
frank
--
Frank Rueter I VFX Supervisor | OHUfx | +64 21 110 7919
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/pyside/attachments/20240916/4c88b8f8/attachment.htm>
More information about the PySide
mailing list