[gnome-builder] subprocess: prefer /usr/bin over /bin
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] subprocess: prefer /usr/bin over /bin
- Date: Thu, 16 Nov 2017 23:11:00 +0000 (UTC)
commit cdf983b68ee3cfadd2601d75330d2be4b833bf55
Author: Christian Hergert <chergert redhat com>
Date: Thu Nov 16 15:10:31 2017 -0800
subprocess: prefer /usr/bin over /bin
Some things break when /bin is used instead of /usr/bin. And /bin is
usually just a symlink to /usr/bin anyway. In particulary, python programs
doing relative lookups to modules may break if spawned via the wrong
base path. (gdbus-codegen was one offender).
src/libide/subprocess/ide-subprocess-launcher.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/libide/subprocess/ide-subprocess-launcher.c b/src/libide/subprocess/ide-subprocess-launcher.c
index 2cf5574..15b7013 100644
--- a/src/libide/subprocess/ide-subprocess-launcher.c
+++ b/src/libide/subprocess/ide-subprocess-launcher.c
@@ -394,7 +394,7 @@ ide_subprocess_launcher_real_spawn (IdeSubprocessLauncher *self,
* that it can get /app/bin too. Since it chains up to us, we wont
* overwrite PATH in that case (which is what we want).
*/
- ide_subprocess_launcher_setenv (self, "PATH", "/bin:/usr/bin", FALSE);
+ ide_subprocess_launcher_setenv (self, "PATH", "/usr/bin:/bin", FALSE);
ide_subprocess_launcher_setenv (self, "HOME", g_get_home_dir (), FALSE);
ide_subprocess_launcher_setenv (self, "USER", g_get_user_name (), FALSE);
ide_subprocess_launcher_setenv (self, "LANG", g_getenv ("LANG"), FALSE);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]