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

Add environment overrides API function #138

Closed
wants to merge 1 commit into from

Conversation

RedBearAK
Copy link
Contributor

Changes

Add a dict and function to support user injected overrides to manually specify the environment from config.

Naming emphasizes to the user that the use of the API will short-circuit (override) any auto-detection features the keymapper may implement or have available. If anything is pushed from config via the function, other areas will be designed to accept these pushed values as taking precedence over the detection algorithms.

The only good reason to use the API is if the detection algorithms fail, such as if the user is in a customized environment where common sources of information such as /etc/os-release or XDG_SESSION_DESKTOP are unavailable, empty or incorrectly populated with unusual values, but the user is sure that the environment is compatible with keyszer.

Nothing in current main is designed to use this information, but Wayland support will require it. This will be the bypass to get keyszer working if the environment detection algorithm fails for any reason. Might be required if the user is using a system-level systemd service file running as another user, and the environment is Wayland.

@RedBearAK
Copy link
Contributor Author

Superceded by PR #157

@RedBearAK RedBearAK closed this May 21, 2023
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

Successfully merging this pull request may close these issues.

1 participant