Find scripts in share/, not in lib/

master
Yevgen Muntyan 2007-11-27 02:08:27 -06:00
parent 0f270f6eab
commit 77d77b6459
1 changed files with 2 additions and 2 deletions

View File

@ -404,7 +404,7 @@ init_tools_environment (void)
done = TRUE; done = TRUE;
script_dirs = moo_get_data_subdirs ("scripts", MOO_DATA_LIB, &n_script_dirs); script_dirs = moo_get_data_subdirs ("scripts", MOO_DATA_SHARE, &n_script_dirs);
g_return_if_fail (n_script_dirs != 0); g_return_if_fail (n_script_dirs != 0);
old_path = g_getenv ("PATH"); old_path = g_getenv ("PATH");
@ -1062,7 +1062,7 @@ _moo_edit_save_user_tools (MooUserToolType type,
list = g_slist_delete_link (list, list); list = g_slist_delete_link (list, list);
} }
string = moo_key_file_format (key_file, "This file is autogenerated, do not edit", 2); string = moo_key_file_format (key_file, "This file is autogenerated, do not edit\n# -%- strip: false -%-", 2);
if (!moo_save_user_data_file (FILENAMES[type], string, -1, &error)) if (!moo_save_user_data_file (FILENAMES[type], string, -1, &error))
{ {