SUBDIRS = \
busconf
-luc_dir = \
- $(datadir)/org.genivi.BootManager$(BOOT_MANAGER_VERSION_API)
-
-luc_path = \
- $(luc_dir)/last-user-context
-
boot_managerdir = \
$(libdir)/boot-manager-$(BOOT_MANAGER_VERSION_API)
$(boot_manager_built_sources)
boot_manager_CFLAGS = \
- -DLUCDIR=\"$(luc_dir)\" \
- -DLUCPATH=\"$(luc_path)\" \
+ -DLUC_PATH=\"$(sysconfdir)/boot-manager/last-user-context\" \
-DG_LOG_DOMAIN=\"boot-manager\" \
-I$(top_srcdir) \
$(DLT_CFLAGS) \
g_return_val_if_fail ((error == NULL || *error == NULL), NULL);
/* initialize the GFile */
- luc_file = g_file_new_for_path (LUCPATH);
+ luc_file = g_file_new_for_path (LUC_PATH);
/* read the contents of the file */
if (!g_file_load_contents (luc_file, NULL, &data, &data_len, NULL, error))
g_return_if_fail (error == NULL || *error == NULL);
/* initialize the GFiles */
- luc_file = g_file_new_for_path (LUCPATH);
- luc_dir = g_file_new_for_path (LUCDIR);
+ luc_file = g_file_new_for_path (LUC_PATH);
+ luc_dir = g_file_get_parent (luc_file);
/* make sure the last user context's directory exists */
g_file_make_directory_with_parents (luc_dir, NULL, &error_file);
EXTRA_DIST = \
test-luc-handler
-luc_dir = \
- $(datadir)/org.genivi.BootManager$(BOOT_MANAGER_VERSION_API)
-
-export luc_path = \
- $(luc_dir)/last-user-context
+export LUC_PATH = \
+ $(sysconfdir)/boot-manager/last-user-context
noinst_PROGRAMS = \
gvariant-writer
compare_luc()
{
./gvariant-writer "$1" "$2"
- diff -q "$luc_path" "$2"
+ diff -q "$LUC_PATH" "$2"
}
# function to begin registration
}
rm -f temp
-rm -f "$luc_path"
+rm -f "$LUC_PATH"
#Test a simple dictionary