Bug 480674 - File ~/.gtkrc-2.0 is created without conforming to umask settings
Summary: File ~/.gtkrc-2.0 is created without conforming to umask settings
Status: REPORTED
Alias: None
Product: systemsettings
Classification: Applications
Component: kcm_style (other bugs)
Version First Reported In: 5.27.10
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-02-01 12:48 UTC by 0BADC0DE
Modified: 2024-03-29 07:34 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description 0BADC0DE 2024-02-01 12:48:42 UTC
SUMMARY
Everytime I login (via SDDM) I get a new  ~/.gtkrc-2.0 file created with file permissions not conforming to my umask settings  (currently it is 0077).


STEPS TO REPRODUCE
1.  Setup your umask policy, i.e. "umask 0077"
2.  Log out and then back in.
3. Execute "ls -l ~/.gtkrc-2.0"

OBSERVED RESULT
-rw-r--r-- 1 user user 265 2024-02-01 13:47:32+0100 /home/user/.gtkrc-2.0

EXPECTED RESULT
-rw------- 1 user user 265 2024-02-01 13:47:32+0100 /home/user/.gtkrc-2.0

SOFTWARE/OS VERSIONS
Kernel Version : 6.7.2.zen1-2
Plasma Version : 5.27.10-2
KDE Version : 23.08.4-1
Frameworks Version : 5.114.0-1
Qt5 Version : 5.15.12+kde+r10-1
Qt6 Version : 6.6.1-3
Wayland Version : 1.22.0-1
XOrg/Wayland Version : 23.2.4-2


ADDITIONAL INFORMATION
Comment 1 0BADC0DE 2024-03-29 07:34:29 UTC
I think I have got the issue to the core.
The entire KDE environment COULD NOT be 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.