One parent less to get resources in the build folder

This commit is contained in:
Christian Dywan 2012-07-02 20:07:37 +02:00
parent 225e13c06b
commit 708d74038f
1 changed files with 1 additions and 1 deletions

View File

@ -1344,7 +1344,7 @@ midori_app_find_res_filename (const gchar* filename)
/* Fallback to build folder */
path = g_build_filename (g_file_get_path (g_file_get_parent (
g_file_get_parent (g_file_get_parent (g_file_new_for_path (exec_path))))),
g_file_get_parent (g_file_new_for_path (exec_path)))),
"data", filename, NULL);
if (g_access (path, F_OK) == 0)
return path;