config-parser: Make weston_config_parse() tkae a file name
Take a basename of the config file to parse instead of an fd.
diff --git a/clients/desktop-shell.c b/clients/desktop-shell.c
index 381f387..599c0a5 100644
--- a/clients/desktop-shell.c
+++ b/clients/desktop-shell.c
@@ -1280,17 +1280,13 @@
int main(int argc, char *argv[])
{
struct desktop desktop = { 0 };
- int config_fd;
struct output *output;
struct weston_config_section *s;
desktop.unlock_task.run = unlock_dialog_finish;
wl_list_init(&desktop.outputs);
- config_fd = open_config_file("weston.ini");
- desktop.config = weston_config_parse(config_fd);
- close(config_fd);
-
+ desktop.config = weston_config_parse("weston.ini");
s = weston_config_get_section(desktop.config, "shell", NULL, NULL);
weston_config_section_get_bool(s, "locking", &desktop.locking, 1);