# HG changeset patch # User ib # Date 1324651337 0 # Node ID dbb38c5293b0d98f4c9bffc6119fe50b80a2f6b6 # Parent b370a9fd85b3a426255a607a1d5ba62d1ca8bd30 Add /home only to the file selector path list if HOME isn't set. diff -r b370a9fd85b3 -r dbb38c5293b0 gui/ui/gtk/fileselect.c --- a/gui/ui/gtk/fileselect.c Fri Dec 23 14:39:39 2011 +0000 +++ b/gui/ui/gtk/fileselect.c Fri Dec 23 14:42:17 2011 +0000 @@ -354,7 +354,7 @@ } free( dir ); if ( getenv( "HOME" ) ) fsTopList_items=g_list_append( fsTopList_items,getenv( "HOME" ) ); - fsTopList_items=g_list_append( fsTopList_items,"/home" ); + else fsTopList_items=g_list_append( fsTopList_items,"/home" ); if (stat( "/media",&f ) == 0) fsTopList_items=g_list_append( fsTopList_items,"/media" ); if (stat( "/mnt",&f ) == 0) fsTopList_items=g_list_append( fsTopList_items,"/mnt" ); fsTopList_items=g_list_append( fsTopList_items,"/" );