Author: post
Date: 2011-03-31 21:32:29 +0200 (Thu, 31 Mar 2011)
New Revision: 3946
Modified:
trunk/librawstudio/rs-profile-camera.c
Log:
Add possibility for local override of camera aliases.
Modified: trunk/librawstudio/rs-profile-camera.c
===================================================================
--- trunk/librawstudio/rs-profile-camera.c 2011-03-31 00:18:32 UTC (rev
3945)
+++ trunk/librawstudio/rs-profile-camera.c 2011-03-31 19:32:29 UTC (rev
3946)
@@ -55,6 +55,15 @@
xmlChar *xml_unique_id, *xml_make, *xml_model;
if (!filename)
+ filename = g_build_filename(rs_confdir_get(),
G_DIR_SEPARATOR_S, "profiles" G_DIR_SEPARATOR_S "rawstudio-cameras.xml", NULL);
+
+ if (!g_file_test(filename, G_FILE_TEST_IS_REGULAR))
+ {
+ g_free(filename);
+ filename = NULL;
+ }
+
+ if (!filename)
filename = g_build_filename(PACKAGE_DATA_DIR, PACKAGE,
"profiles" G_DIR_SEPARATOR_S "rawstudio-cameras.xml", NULL);
if (!g_file_test(filename, G_FILE_TEST_IS_REGULAR))
_______________________________________________
Rawstudio-commit mailing list
[email protected]
http://rawstudio.org/cgi-bin/mailman/listinfo/rawstudio-commit