is there currently no way to delete keys with ecore_config? i was trying
to patch the entrance ebuild which still modifies entrance_config.db
with edb_ed, but that needs to delete a few keys...
relatedly, with the switch to ecore_config is entrance no longer
dependent on edb?
finally, i attached a patch to use entrance.cfg without the now
superflous _config part left over from when it was a .db file
Index: e17/apps/entrance/entrance.spec
===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/entrance/entrance.spec,v
retrieving revision 1.9
diff -u -r1.9 entrance.spec
--- e17/apps/entrance/entrance.spec 3 Nov 2005 04:49:27 -0000 1.9
+++ e17/apps/entrance/entrance.spec 28 Nov 2005 18:12:16 -0000
@@ -42,7 +42,7 @@
%files
%defattr(-, root, root)
%doc AUTHORS COPYING* README
-%{_sysconfdir}/entrance_config.cfg
+%{_sysconfdir}/entrance.cfg
%{_sysconfdir}/init.d/entrance
%{_sysconfdir}/pam.d/entrance
%{_bindir}/entrance
Index: e17/apps/entrance/data/config/.cvsignore
===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/entrance/data/config/.cvsignore,v
retrieving revision 1.3
diff -u -r1.3 .cvsignore
--- e17/apps/entrance/data/config/.cvsignore 16 Aug 2005 04:04:04 -0000 1.3
+++ e17/apps/entrance/data/config/.cvsignore 28 Nov 2005 18:12:16 -0000
@@ -1,4 +1,4 @@
Makefile
Makefile.in
build_config.sh
-entrance_config.cfg
+entrance.cfg
Index: e17/apps/entrance/data/config/Makefile.am
===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/entrance/data/config/Makefile.am,v
retrieving revision 1.4
diff -u -r1.4 Makefile.am
--- e17/apps/entrance/data/config/Makefile.am 16 Aug 2005 04:04:04 -0000 1.4
+++ e17/apps/entrance/data/config/Makefile.am 28 Nov 2005 18:12:16 -0000
@@ -1,4 +1,4 @@
-DB = entrance_config.cfg
+DB = entrance.cfg
SCRIPT = build_config.sh
CLEANFILES = $(DB)
Index: e17/apps/entrance/data/config/build_config.sh.in
===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/entrance/data/config/build_config.sh.in,v
retrieving revision 1.11
diff -u -r1.11 build_config.sh.in
--- e17/apps/entrance/data/config/build_config.sh.in 8 Nov 2005 23:06:17 -0000 1.11
+++ e17/apps/entrance/data/config/build_config.sh.in 28 Nov 2005 18:12:16 -0000
@@ -1,5 +1,5 @@
#!/bin/sh -e
-DB="./entrance_config.cfg"
+DB="./entrance.cfg"
rm -f $DB
# set auth to 1 for pam, 2 for shadow
Index: e17/apps/entrance/src/client/entrance_edit.c
===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/entrance/src/client/entrance_edit.c,v
retrieving revision 1.14
diff -u -r1.14 entrance_edit.c
--- e17/apps/entrance/src/client/entrance_edit.c 5 Sep 2005 12:05:57 -0000 1.14
+++ e17/apps/entrance/src/client/entrance_edit.c 28 Nov 2005 18:12:24 -0000
@@ -787,7 +787,7 @@
ecore_main_loop_quit();
else if (!strcmp("ecco,button,global,save", emission))
{
- snprintf(buf, PATH_MAX, "%s/entrance_config.cfg", PACKAGE_CFG_DIR);
+ snprintf(buf, PATH_MAX, "%s/entrance.cfg", PACKAGE_CFG_DIR);
if (!entrance_config_save(ecco.config, buf))
{
fprintf(stderr, "Wrote %s\n", buf);
@@ -1917,9 +1917,9 @@
ecore_app_args_set(argc, (const char **) argv);
if ((ecco.config =
- entrance_config_load(PACKAGE_CFG_DIR "/entrance_config.cfg")) == NULL)
+ entrance_config_load(PACKAGE_CFG_DIR "/entrance.cfg")) == NULL)
{
- fprintf(stderr, "Unable to open %s/entrance_config.cfg\n",
+ fprintf(stderr, "Unable to open %s/entrance.cfg\n",
PACKAGE_CFG_DIR);
exit(1);
}
Index: e17/apps/entrance/src/client/entrance_session.c
===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/entrance/src/client/entrance_session.c,v
retrieving revision 1.79
diff -u -r1.79 entrance_session.c
--- e17/apps/entrance/src/client/entrance_session.c 10 Nov 2005 14:44:25 -0000 1.79
+++ e17/apps/entrance/src/client/entrance_session.c 28 Nov 2005 18:12:24 -0000
@@ -43,7 +43,7 @@
if (config)
e->db = strdup(config);
else
- e->db = strdup(PACKAGE_CFG_DIR "/entrance_config.cfg");
+ e->db = strdup(PACKAGE_CFG_DIR "/entrance.cfg");
openlog("entrance", LOG_NOWAIT, LOG_DAEMON);
if (!display)