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 support for server configuration files #279

Closed
michaelrsweet opened this issue Jul 5, 2023 · 1 comment
Closed

Add support for server configuration files #279

michaelrsweet opened this issue Jul 5, 2023 · 1 comment
Assignees
Labels
enhancement New feature or request priority-high
Milestone

Comments

@michaelrsweet
Copy link
Owner

michaelrsweet commented Jul 5, 2023

Currently printer applications don't offer persistent configuration options for the server, just persistent state. The lprint and hp-printer-app snaps expose configuration settings but that doesn't help non-snapped deployments.

Add support for finding configuration files (and options) in /etc, /usr/local/etc. /Library/Application Support (macOS), $XDG_CONFIG_HOME (Linux), $HOME/Library/Application Support (macOS), $USERPROFILE/AppData/Local (Windows), $SNAP_COMMON (snaps), and $HOME/.config (others). The config filename is "PRINTERAPP.conf" (where "PRINTERAPP" is the base name of the printer application) and the format is basically:

# comment
option=value
option2=value option3=value
option4=value

The order of precedence for options is:

  1. Options set on command-line
  2. Options set in per-user directory
  3. Options set in system/snap directory
@michaelrsweet michaelrsweet self-assigned this Jul 5, 2023
@michaelrsweet michaelrsweet added enhancement New feature or request priority-high labels Jul 5, 2023
@michaelrsweet michaelrsweet added this to the v1.4 milestone Jul 5, 2023
@michaelrsweet
Copy link
Owner Author

[master 872f8b7] Add support for server configuration files that set default option values (Issue #279)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request priority-high
Projects
None yet
Development

No branches or pull requests

1 participant