File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -479,18 +479,18 @@ nemo_get_xdg_dir (const char *type)
479479 update_xdg_dir_cache ();
480480 }
481481
482- for (i = 0 ; cached_xdg_dirs != NULL && cached_xdg_dirs [i ].type != NULL ; i ++ ) {
483- if (strcmp (cached_xdg_dirs [i ].type , type ) == 0 ) {
484- return g_strdup (cached_xdg_dirs [i ].path );
485- }
486- }
487482 if (strcmp ("DESKTOP" , type ) == 0 ) {
488483 return g_build_filename (g_get_home_dir (), DESKTOP_DIRECTORY_NAME , NULL );
489484 }
490485 if (strcmp ("TEMPLATES" , type ) == 0 ) {
491486 return g_build_filename (g_get_home_dir (), "Templates" , NULL );
492487 }
493488
489+ for (i = 0 ; cached_xdg_dirs != NULL && cached_xdg_dirs [i ].type != NULL ; i ++ ) {
490+ if (strcmp (cached_xdg_dirs [i ].type , type ) == 0 ) {
491+ return g_strdup (cached_xdg_dirs [i ].path );
492+ }
493+ }
494494 return g_strdup (g_get_home_dir ());
495495}
496496
You can’t perform that action at this time.
0 commit comments