1 Index: KoboDeluxe-0.5.1/configure.in
2 ===================================================================
3 --- KoboDeluxe-0.5.1.orig/configure.in 2008-02-10 20:51:37.000000000 +0100
4 +++ KoboDeluxe-0.5.1/configure.in 2008-02-10 21:40:09.000000000 +0100
6 SCOREDIR='$(sharedstatedir)/kobo-deluxe/scores'
14 SCOREDIR='EXE>>scores'
16 CONFIGFILE='kobodl.cfg'
22 SCOREDIR='EXE>>scores'
24 CONFIGFILE='kobodl.cfg'
30 AM_CONDITIONAL(BUILD_MACOSX_BUNDLE, test x$build_macosx_bundle = xyes)
31 AM_CONDITIONAL(BUILD_SIMPLE_BUNDLE, test x$build_simple_bundle = xyes)
32 AM_CONDITIONAL(UNIX_SCOREDIR, test x$unix_scoredir = xyes)
33 +AC_DEFINE_UNQUOTED([USE_SYSCONF], [$USE_SYSCONF], [Define to 1 to use Unix-style sysconf dir for default configuration.])
38 +AC_SUBST(KOBO_SYSCONF)
42 Index: KoboDeluxe-0.5.1/kobo.cpp
43 ===================================================================
44 --- KoboDeluxe-0.5.1.orig/kobo.cpp 2008-02-10 20:57:32.000000000 +0100
45 +++ KoboDeluxe-0.5.1/kobo.cpp 2008-02-10 21:27:22.000000000 +0100
46 @@ -1293,9 +1293,38 @@
47 FILE *f = fmap->fopen(KOBO_CONFIG_DIR "/" KOBO_CONFIG_FILE, "r");
50 + log_puts(VLOG, "Loading personal configuration from: "\
51 + KOBO_CONFIG_DIR "/" KOBO_CONFIG_FILE "\n");
56 + /* On Unixen, where they have SYSCONF_DIR (usually /etc) try to get
57 + * the default configuration from a file stored there before
60 + * This gives packagers a chance to provide a proper default
61 + * (playable) configuration for all those little Linux-based
62 + * gadgets that are flying around.
66 + f = fmap->fopen(SYSCONF_DIR "/kobo-deluxe/default-config", "r");
69 + log_puts(VLOG, "Loading configuration defaults from: "\
70 + SYSCONF_DIR "/kobo-deluxe/default-config\n");
76 + log_puts(VLOG, "Using built-in configuration defaults.\n");
80 + log_puts(VLOG, "Using built-in configuration defaults.\n");