Bumblebee-Project/bumblebeed — Issue #29: Parsing order and autodetection
Author: Samsagax
Created: 2012-01-08 03:24:04+00:00
State: open

GH-#26 arose some issues regarding the driver auto-detection and parsing the driver specific configuration.

If no driver is specified, then the driver specific configuration won't be available because is not autodetected until the configuration file is parsed.
If the driver is autodetected then the configuration for each driver is not parsed.

It's a clear ordering problem. So I'm proposing to split parsers this way:

- parse command line options `-C` and `-v`
- autodetect driver (with `check_secondary()`)
- parse configuration file
- parse the rest of command line options.

If no one has objections then I'll implement it with the new Glib parser all together and close both issues.