ii8 / havoc

minimal terminal emulator for wayland
Other
103 stars 17 forks source link

Global config file #31

Closed xWNgLWT0mQf closed 3 years ago

xWNgLWT0mQf commented 4 years ago

Good day. I was wondering if it would be possible for a master config file supported by this project? For instance, have a config file loaded at /etc/havoc/havoc.cfg. I would be willing to write the code and open a pull request for this change, but I wanted your opinion before I do that. My thought is that the config's priority would be thus: $XDG_CONFIG_HOME first, then in $HOME/.config, then in /etc/havoc and last in the current working directory. The reason for this request is that (some) package management systems only install files listed in the Makefile, whick would prevent endusers from getting a config file by default.

ii8 commented 4 years ago

See https://github.com/ii8/havoc/issues/25

xWNgLWT0mQf commented 4 years ago

I see. My apologies for not looking through the old issues. Is it possible to have the config file copied to usr/share/example (as suggested in #25) by the makefile?

ii8 commented 4 years ago

Unfortunately I don't think /usr/share/example is standard, a lot of distributions don't have this, so it should be done by the package script instead(if it makes sense for that distro).

xWNgLWT0mQf commented 3 years ago

Very well. I understand your reasoning. Please feel free to close this issue.