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

Merged
merged 1 commit into from
Jan 28, 2025

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]>
@spl237 spl237 merged commit bae276e into RPi-Distro:bookworm Jan 28, 2025
@spl237
Copy link

spl237 commented Jan 28, 2025

Looks good to me - many thanks.

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
2 participants