Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: permission of created .config dir in labwc #268

Open
wants to merge 1 commit into
base: bookworm
Choose a base branch
from

Conversation

tboehler1
Copy link

When the $HOMEDIR/.config/labwc folder is created it also creates the $HOMEDIR/.config folder if it doesn't exist. As raspi-config is run with sudo this makes the root user own the $HOMEDIR/.config directory. Afterwards, only the $HOMEDIR/.config/labwc directory owner is changed to $USER.

Add a function that ensures that the $HOMEDIR/.config directory exists and, if it doesn't, create it with the correct permissions.

Fixes: #267

When the $HOMEDIR/.config/labwc folder is created it also creates the
$HOMEDIR/.config folder if it doesn't exist. As raspi-config is run with
sudo this makes the root user own the $HOMEDIR/.config directory.
Afterwards, only the $HOMEDIR/.config/labwc directory owner is changed
to $USER.

Add a function that ensures that the $HOMEDIR/.config directory exists
and, if it doesn't, create it with the correct permissions.

Fixes: RPi-Distro#267
Signed-off-by: Thomas Böhler <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Configuring keyboard creates user .config dir with owner root:root
1 participant