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

Would be possible to provide an xdg module as well? #1

Open
lu-zero opened this issue Dec 23, 2024 · 6 comments
Open

Would be possible to provide an xdg module as well? #1

lu-zero opened this issue Dec 23, 2024 · 6 comments

Comments

@lu-zero
Copy link

lu-zero commented Dec 23, 2024

So people that want to migrate from directories can pave a no-friction upgrade path for their users.

@uncenter
Copy link
Owner

Can you elaborate? The XDG directories are determined just by checking an environment variable and thats about it - I guess I can make that its own module, but it also doesn't seem that would be compatible with the behavior of directories?

@lu-zero
Copy link
Author

lu-zero commented Dec 24, 2024

I noticed now, yes it wouldn't be much useful until the xdg defaults are provided

@uncenter
Copy link
Owner

So people that want to migrate from directories can pave a no-friction upgrade path for their users.

I am interested in this though, if you have any ideas on how an ideal implementation of a migration would look.

@lu-zero
Copy link
Author

lu-zero commented Jan 18, 2025

It would imply to add the usual known xdg defaults I guess.

@uncenter
Copy link
Owner

But if you are a tool looking to move over, what would that look like ideally vs now? What is the solution trying to do? If this repository provided an identical interface to the old dirs, it a) then has the same issue and b) how would having access to that make migration easier?

@lu-zero
Copy link
Author

lu-zero commented Jan 19, 2025

I'd have separate modules for the strategies:

  • os:: to get the os-specific paths
  • xdg:: to get the xdg paths

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

No branches or pull requests

2 participants