changeset 34368:dbb38c5293b0

Add /home only to the file selector path list if HOME isn't set.
author ib
date Fri, 23 Dec 2011 14:42:17 +0000
parents b370a9fd85b3
children c8437c7512e9
files gui/ui/gtk/fileselect.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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,"/" );