summaryrefslogtreecommitdiff
path: root/navit/start.c
diff options
context:
space:
mode:
authorkazer_ <kazer_@ffa7fe5e-494d-0410-b361-a75ebd5db220>2008-08-20 14:13:37 +0000
committerkazer_ <kazer_@ffa7fe5e-494d-0410-b361-a75ebd5db220>2008-08-20 14:13:37 +0000
commitba1b91acb213d7d880e2d535a4100041c656df48 (patch)
treecae0ec543f6a8573257b742c36bce96d283e90c4 /navit/start.c
parent53d953e495077d0db4b4802b33ee3444fb8ff305 (diff)
downloadnavit-ba1b91acb213d7d880e2d535a4100041c656df48.tar.gz
Fix:Ticket 162:Looks for navit.xml also in /etc for debian-like distros, only when not building for windows
git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@1277 ffa7fe5e-494d-0410-b361-a75ebd5db220
Diffstat (limited to 'navit/start.c')
-rw-r--r--navit/start.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/navit/start.c b/navit/start.c
index 315978cae..3d0e894a9 100644
--- a/navit/start.c
+++ b/navit/start.c
@@ -124,6 +124,9 @@ int main(int argc, char **argv)
list = g_list_append(list,g_strdup("navit.xml"));
list = g_list_append(list,g_strjoin(NULL,getenv("NAVIT_SHAREDIR"), "/navit.xml.local" , NULL));
list = g_list_append(list,g_strjoin(NULL,getenv("NAVIT_SHAREDIR"), "/navit.xml" , NULL));
+ #ifndef _WIN32
+ list = g_list_append(list,g_strdup("/etc/navit/navit.xml"));
+ #endif
}
li = list;
do {