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

System-wide configuration file #1173

Open
1 task done
jantari opened this issue May 25, 2023 · 1 comment
Open
1 task done

System-wide configuration file #1173

jantari opened this issue May 25, 2023 · 1 comment
Labels
feature Requests for a new feature.

Comments

@jantari
Copy link

jantari commented May 25, 2023

Checklist

Describe the feature request

First off, thanks a lot for this program. I've used it for a while and it's only been getting better!

One additional feature I'd love for multi-user systems (aka servers or VDI) is the ability to have a system-wide (machine-wide) default configuration file. This is a typical feature of many programs that allows an administrator to pre-configure customized default options for the program in one central configuration file that applies to everyone who logs into the machine, but users are still able to create their own per-user configuration files (same as now) that will override the system-wide defaults.

On Windows, such a system-wide configuration would belong in the "ProgramData" (CommonApplicationData) directory whose location is obtained by calling SHGetKnownFolderPath with FOLDERID_ProgramData as the first argument. Alternatively in managed code it could be a call to GetFolderPath with CommonApplicationData argument but I don't think that's as accessible to Rust.

On Unix-like systems I believe XDG_CONFIG_DIRS should cover this usecase.

@jantari jantari added the feature Requests for a new feature. label May 25, 2023
@ClementTsang
Copy link
Owner

Hmm. That's an interesting idea, though my immediate gut reaction is that I'm not sure how much I will prioritize it since this use case seems kinda out of scope.

Maybe I might explore it alongside related ideas like #901?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Requests for a new feature.
Projects
None yet
Development

No branches or pull requests

2 participants