Support XDG Basedir specification #4243

Closed
michaelrsweet opened this Issue Dec 5, 2012 · 9 comments

Comments

Projects
None yet
2 participants
Collaborator

michaelrsweet commented Dec 5, 2012

Collaborator

michaelrsweet commented Dec 6, 2012

CUPS.org User: mike

Dupe of STR #3937.

In short, we've decided that maintaining compatibility with our long-standing usage of ~/.cups is more important than supporting XDG. Sorry.

Collaborator

michaelrsweet commented Dec 7, 2012

CUPS.org User: eheintzmann

Would not be possible to continue to use .cups dir if exits, but if .cups dir does not exit use XDG dirs instead?

Collaborator

michaelrsweet commented Dec 7, 2012

CUPS.org User: mike

The problem with that is client software that doesn't use libcups to read things like the lpoptions file. And of course there is a race condition between the check and the store. And there are multiple configuration files in ~/.cups so we can't do a simple migration of a single file when we store the settings.

Collaborator

michaelrsweet commented Dec 7, 2012

CUPS.org User: eheintzmann

Can't you use symlinks as transitional solution?

Collaborator

michaelrsweet commented Dec 7, 2012

CUPS.org User: mike

A) not portably, and
B) not unless we want to try migrating all of the files in ~/.cups to the XDG location

Really, we looked at this before and decided against it. I see no reason to revisit that decision at this time.

Collaborator

michaelrsweet commented Dec 9, 2012

CUPS.org User: eheintzmann

What about add an option to let user decide where he wants to store his settings?

michaelrsweet added this to the Stable milestone Mar 17, 2016

jcrben commented Jul 4, 2017

Allowing the user to set an environment variable would provide complete backwards compatibility.

Collaborator

michaelrsweet commented Jul 4, 2017

@jcrben There are security and usability issues with using environment variables for this sort of thing, and it still doesn’t solve the migration or platform issues. So this is still a no...

jcrben commented Jul 4, 2017

OK, altho I've got dozens of similar types of environment variables relocating config files already.

It might sound nuts, but clutter like this has pushed me to evaluate returning to Linux.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment