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

cmd/snap: let userd create the XDG directories #12111

Closed
wants to merge 2 commits into from

Conversation

mardy
Copy link
Contributor

@mardy mardy commented Sep 5, 2022

Create ~/.cache/, ~/.config/ and ~/.local/share/ on startup of the
user session daemon.

Fixes: https://bugs.launchpad.net/bugs/1988355

Create `~/.cache/`, `~/.config/` and `~/.local/share/` on startup of the
user session daemon.

Fixes: https://bugs.launchpad.net/bugs/1988355
Copy link
Contributor

@MiguelPires MiguelPires left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When the exposed directory experimental feature is on, we create XDG directories under ~/Snap and set the respective env vars when running the snap. Maybe in that case we shouldn't be doing this?

cmd/snap/cmd_userd.go Outdated Show resolved Hide resolved
Thanks @MiguelPires!

Co-authored-by: Miguel Pires <miguelpires94@gmail.com>
@pedronis
Copy link
Collaborator

pedronis commented Sep 6, 2022

to cover across scenarios we probably need to do something on the run pipeline based on information about the snap needs and possibly more relevant interface attributes

@pedronis pedronis closed this Sep 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants