Bug 445803

Summary: Doesn't honor the umask while saving xml FILE in .local/share/okular/docdata/
Product: [Applications] okular Reporter: 0BADC0DE <vincenzo.romano>
Component: generalAssignee: Okular developers <okular-devel>
Status: REPORTED ---    
Severity: normal    
Priority: NOR    
Version First Reported In: 21.08.3   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description 0BADC0DE 2021-11-20 11:56:19 UTC
SUMMARY
***
No matter what umask is set, XML files are saved with 0644 permissions.
***


STEPS TO REPRODUCE
1.  Setup umask at, say, 0077 (no permissions for G and O).
2.  Open a document with ocular and browse it.
3.  Check file permissions in  .local/share/okular/docdata/ for the file named after the browsed document

OBSERVED RESULT
XML file has permissions 0644

EXPECTED RESULT
XML file permissions should obey umask (0600 in the example case)

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
Comment 1 0BADC0DE 2024-03-29 07:33:04 UTC
I think I have got the issue to the core.
The entire KDE environment COULD NOT started AFTER the user initialization script have been run.
In my case, it seems .bashrc is not read and thus no user-defined setting is run.
Since I have put the UMASK setting also inside /etc/login.defs this "bug" is not triggered any more.