aszlig
9058fc44e6
Allow to validate the config file without X.
...
We're going to call parse_configuration() very early if -C is given on
the command line. Instead of the previous "only_check_config", which has
been a global variable, we now simply pass use_nagbar as false if we're
just validating.
This causes the whole parsing to run without X and of course without
starting nagbar and displaying the errors to standard out/error instead.
The return code of parse_configuration() is now a boolean which
represents whether an error occured during parsing and the programs exit
code is returned accordingly.
Although the config parser still has a lot of side-effects, we now can
parse without the need to have an XCB connection. A nicer implementation
would be to just set the new font and load it just after we're done
parsing, but to ensure we don't break functionality we just load a dummy
FONT_TYPE_NONE if XCB isn't available. The main reason for going this
route is that it's a bit difficult to test fonts in a distribution
agnostic way without bundling fonts with i3 (or Xdummy to be more
exact).
Signed-off-by: aszlig <aszlig@redmoonstudios.org >
2014-08-25 19:34:26 +02:00
..
2012-11-13 21:03:44 +01:00
2012-09-10 14:09:01 +02:00
2012-09-10 14:09:01 +02:00
2012-09-10 14:09:01 +02:00
2012-09-10 14:09:01 +02:00
2012-09-10 14:09:01 +02:00
2013-12-22 21:52:49 +01:00
2012-09-10 14:09:01 +02:00
2012-09-10 14:09:01 +02:00
2012-09-10 14:09:01 +02:00
2012-09-10 14:09:01 +02:00
2012-09-10 14:09:01 +02:00
2012-09-10 14:09:01 +02:00
2012-09-10 14:09:01 +02:00
2013-09-24 06:36:08 +02:00
2012-09-10 14:09:01 +02:00
2012-11-13 21:03:25 +01:00
2013-12-22 21:52:49 +01:00
2013-12-22 21:52:49 +01:00
2012-09-10 14:09:01 +02:00
2013-09-24 21:56:52 +02:00
2012-09-10 14:09:01 +02:00
2012-09-10 14:09:01 +02:00
2014-07-15 10:36:31 +02:00
2014-07-02 19:07:08 +02:00
2012-09-10 14:09:01 +02:00
2012-09-10 14:09:01 +02:00
2012-09-10 14:09:01 +02:00
2013-10-13 17:59:29 +02:00
2014-02-13 21:05:42 +01:00
2012-09-10 14:09:01 +02:00
2014-02-25 20:44:17 +01:00
2012-09-10 14:09:01 +02:00
2012-09-10 14:09:01 +02:00
2012-10-16 20:01:36 +02:00
2012-09-10 14:09:01 +02:00
2012-09-10 14:09:01 +02:00
2012-09-10 14:09:01 +02:00
2012-09-10 14:09:01 +02:00
2012-09-10 14:09:01 +02:00
2012-09-28 20:36:25 +02:00
2012-09-10 14:09:01 +02:00
2012-09-10 14:09:01 +02:00
2012-09-10 14:09:01 +02:00
2013-09-01 13:35:04 +02:00
2012-09-10 14:09:01 +02:00
2012-09-10 14:09:01 +02:00
2012-09-10 14:09:01 +02:00
2012-09-10 14:09:01 +02:00
2012-09-10 14:09:01 +02:00
2012-09-10 14:09:01 +02:00
2012-09-10 14:09:01 +02:00
2012-09-10 14:09:01 +02:00
2012-09-10 14:09:01 +02:00
2014-02-25 20:44:17 +01:00
2014-06-19 11:55:28 +02:00
2012-09-10 14:09:01 +02:00
2012-09-24 22:20:29 +02:00
2012-09-10 14:09:01 +02:00
2012-09-10 14:09:01 +02:00
2012-09-10 14:09:01 +02:00
2013-09-24 21:56:52 +02:00
2013-09-24 21:56:52 +02:00
2012-09-10 14:09:01 +02:00
2012-09-10 14:09:01 +02:00
2012-09-28 19:29:14 +02:00
2012-09-10 14:09:01 +02:00
2012-09-10 14:09:01 +02:00
2013-06-29 20:58:33 +02:00
2012-09-10 14:09:01 +02:00
2013-09-24 21:56:52 +02:00
2014-06-28 13:00:59 +02:00
2012-09-10 14:09:01 +02:00
2014-07-10 22:30:45 +02:00
2012-11-10 09:01:24 +01:00
2013-09-24 06:59:26 +02:00
2012-09-10 14:09:01 +02:00
2012-09-10 14:09:01 +02:00
2012-09-10 14:09:01 +02:00
2014-06-13 22:19:23 +02:00
2012-09-10 14:09:01 +02:00
2012-09-10 14:09:01 +02:00
2012-09-10 14:09:01 +02:00
2013-12-22 21:52:49 +01:00
2012-09-10 14:09:01 +02:00
2013-10-13 18:02:40 +02:00
2012-09-10 14:09:01 +02:00
2012-12-26 22:03:37 +01:00
2013-09-24 21:56:52 +02:00
2012-09-10 14:09:01 +02:00
2012-09-10 14:09:01 +02:00
2012-09-10 14:09:01 +02:00
2013-04-02 23:59:26 +02:00
2014-06-01 11:45:59 +02:00
2012-09-10 14:09:01 +02:00
2012-09-10 14:09:01 +02:00
2012-09-22 12:56:01 +02:00
2012-09-22 13:20:53 +02:00
2013-09-24 06:36:08 +02:00
2014-07-10 22:40:12 +02:00
2013-07-11 21:18:21 +02:00
2014-06-12 09:32:55 +02:00
2013-09-24 21:56:52 +02:00
2014-02-26 22:24:19 +01:00
2013-05-25 22:59:27 +02:00
2013-06-23 22:14:59 +02:00
2013-09-24 21:56:52 +02:00
2013-07-13 12:24:15 +02:00
2013-07-17 23:02:31 +02:00
2013-09-24 21:56:52 +02:00
2013-10-19 10:07:24 +02:00
2013-12-22 21:52:49 +01:00
2014-01-06 22:26:23 +01:00
2013-12-22 21:52:49 +01:00
2014-01-04 21:57:35 +01:00
2014-01-05 20:37:42 +01:00
2014-07-10 22:39:42 +02:00
2014-02-08 20:59:23 +01:00
2014-02-26 22:24:19 +01:00
2014-02-26 22:24:19 +01:00
2014-03-08 21:00:50 +01:00
2014-03-21 19:21:19 +01:00
2014-05-03 15:08:31 +02:00
2014-04-26 12:10:05 +02:00
2014-04-30 09:35:31 +02:00
2014-05-03 15:00:49 +02:00
2014-05-03 15:37:25 +02:00
2014-07-11 00:33:20 +02:00
2014-06-27 09:04:51 +02:00
2014-06-13 22:29:47 +02:00
2014-06-23 21:18:12 +02:00
2014-06-19 12:59:25 +02:00
2014-06-19 13:00:17 +02:00
2014-06-24 09:39:12 +02:00
2014-06-23 21:17:27 +02:00
2014-06-23 21:30:07 +02:00
2014-06-24 09:04:45 +02:00
2014-06-24 09:01:04 +02:00
2014-08-08 12:23:47 +02:00
2014-07-15 10:27:42 +02:00
2014-07-10 22:32:27 +02:00
2014-08-25 19:34:26 +02:00
2014-07-15 09:18:40 +02:00
2014-08-08 12:19:35 +02:00
2014-08-08 20:15:59 +02:00
2012-09-10 14:09:01 +02:00
2012-09-10 14:09:01 +02:00
2014-02-25 20:44:17 +01:00
2014-02-25 20:44:17 +01:00
2013-12-22 21:52:49 +01:00
2014-02-25 20:44:17 +01:00
2014-02-25 20:44:17 +01:00
2012-09-28 23:04:37 +02:00
2012-10-03 15:08:21 +02:00
2014-02-25 20:44:17 +01:00
2012-12-22 14:08:11 +01:00
2013-02-10 17:38:17 +01:00
2013-12-22 21:52:49 +01:00
2013-12-04 19:50:35 +01:00
2013-08-18 17:47:53 +02:00
2013-11-19 20:28:32 +01:00
2014-05-20 19:59:49 +02:00
2014-05-20 20:15:55 +02:00
2014-05-31 14:55:29 +02:00
2014-06-24 09:05:39 +02:00
2014-08-08 12:23:47 +02:00