From 3b172585dad0f6fb65f9fe1d59881e2c4575d495 Mon Sep 17 00:00:00 2001 From: Armin Weatherwax Date: Sat, 19 Sep 2009 12:08:08 +0200 Subject: Henri Beauchamps $HOME as default load/save location for Linux modified: linden/indra/newview/llfilepicker.cpp --- linden/indra/newview/llfilepicker.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'linden/indra/newview/llfilepicker.cpp') diff --git a/linden/indra/newview/llfilepicker.cpp b/linden/indra/newview/llfilepicker.cpp index caf79eb..954a274 100644 --- a/linden/indra/newview/llfilepicker.cpp +++ b/linden/indra/newview/llfilepicker.cpp @@ -998,6 +998,12 @@ GtkWindow* LLFilePicker::buildFilePicker(bool is_save, bool is_folder, std::stri (GTK_FILE_CHOOSER(win), this_path->second.c_str()); } + else if (getenv("HOME")) + { + gtk_file_chooser_set_current_folder + (GTK_FILE_CHOOSER(win), + getenv("HOME")); + } # if LL_X11 // Make GTK tell the window manager to associate this -- cgit v1.1