Skip to content

Feature request: Adds XDG folder structure creation when adding users #537

Open
@quentin9696

Description

@quentin9696

Podman strongly push to use quadlets to run containers via systemd units (https://docs.podman.io/en/latest/markdown/podman-systemd.unit.5.html)
When I want to create my units and my .container file, I need to always create my XDG structure first. For every user, I need to create the XDG structure, like

    - path: /home/logging/.config
      user:
        name: logging
      group:
        name: logging
    - path: /home/logging/.config/containers
      user:
        name: logging
      group:
        name: logging
    - path: /home/logging/.config/containers/systemd
      user:
        name: logging
      group:
        name: logging
    - path: /home/logging/.config/systemd
      user:
        name: logging
      group:
        name: logging
    - path: /home/logging/.config/systemd/user
      user:
        name: logging
      group:
        name: logging
    - path: /home/logging/.local
      user:
        name: logging
      group:
        name: logging
    - path: /home/logging/.local/state
      user:
        name: logging
      group:
        name: logging

I'm thinking to a way to automate the creation, but it seam that skel cannot be used (https://discussion.fedoraproject.org/t/etc-skel-not-used-for-core-user-in-fedora-coreos/36973/4?replies_to_post_number=4)

Do you have any plan to integrate the XDG folder structure when adding a new user in butane?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions