Commit Graph

13 Commits

Author SHA1 Message Date
yosh 15790d4c46 chore: convert spaces to tabs 2024-02-24 02:00:11 -05:00
raichoo 82f5829893 Clean up Makefile
Prevents from generating header files that are not used for a specific build as
well as excluding unnecessary object files. The `clean` target automatically
assumes all features being enabled to clean up all potential files.
2020-07-30 16:35:26 +00:00
raichoo 88e4f96195 refactor option handling
Configuration and autostart script are checked for permissions during startup.
Also the order in which the configuration is loaded.

* explicit configuration overrides all others and stops if it can not be used
* otherwise fallback to `XDG_CONFIG_HOME`
* otherwise use default configuration

Options should also be parsed and handled before the backend starts up.
2020-05-19 07:06:23 +00:00
raichoo da279618f2 exit with failure state on unknown option 2020-05-19 07:04:28 +00:00
raichoo 97a4089e81 reduce code running with privileges
We can reduce the amount of code running with privileges to the few calls that
are needed to initialize the `wlroots` backend. These calls are now part of
`hikari_server_prepare_privileged`. After this everything is running with the
users privileges again.
2020-05-17 12:16:48 +00:00
firefly 74b299a870 honour $XDG_CONFIG_HOME 2020-05-14 13:09:57 +00:00
raichoo f58b55aa68 reintroduce ETC_PREFIX for Linux builds 2020-05-02 18:52:21 +00:00
raichoo 401b900323 refactor configuration infrastructure
This patch reworks how `hikari` gets configured and provides a default
configuration as well as means to incorporate this into the binary.

This deprecated the `ETC_PREFIX` configuration during make and makes it reuse
`PREFIX`.

A default terminal is now specified via the `TERMINAL` environment variable.
2020-05-02 14:34:45 +00:00
raichoo 243648f1ee make `usage` a bit more consistent 2020-03-11 14:48:43 +00:00
raichoo da1d3dea6e add command line flag for autostart
The autostart executable can now be specified via `-a` on startup.
2020-03-11 13:47:23 +00:00
raichoo 36f9f6a0e4 add command line option to specify configuration
Configuration files can now be specified on startup using the `-c` option.
2020-03-11 13:07:00 +00:00
raichoo 099db7cc38 add command line flags
* -h for displaying the help message
* -v for version
2020-03-11 12:58:37 +00:00
raichoo 9e81a0fa92 Let there be light! 2020-02-05 10:02:33 +00:00