sometimes certain commands couldn't be found because PATH was overridden.

* src/FileSystem.cc: sometimes certain commands couldn't be found
  because PATH was overridden. fixed.
This commit is contained in:
Bart Hakvoort 2006-01-29 19:28:50 +00:00
parent 100dccb20c
commit 565127b0d8
3 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2006-01-29 Bart Hakvoort <hakvoort@cvs.gnome.org>
* src/FileSystem.cc: sometimes certain commands couldn't be found
because PATH was overridden. fixed.
2006-01-28 Bart Hakvoort <hakvoort@cvs.gnome.org> 2006-01-28 Bart Hakvoort <hakvoort@cvs.gnome.org>
* src/Utils.cc: fixed small bug in unmount() * src/Utils.cc: fixed small bug in unmount()

View File

@ -65,6 +65,7 @@ int FileSystem::execute_command( std::vector<std::string> argv, std::string & ou
{ {
std::vector<std::string> envp ; std::vector<std::string> envp ;
envp .push_back( "LC_ALL=C" ) ; envp .push_back( "LC_ALL=C" ) ;
envp .push_back( "PATH=" + Glib::getenv( "PATH" ) ) ;
try try
{ {