6e7775d3.patch 1.2 KB

1234567891011121314151617181920212223242526272829303132333435
  1. From 6e7775d315f389df0a440ed62b842ce83dc9a27e Mon Sep 17 00:00:00 2001
  2. From: Nicolas Fella <nicolas.fella@gmx.de>
  3. Date: Fri, 1 Mar 2024 22:16:07 +0100
  4. Subject: [PATCH] [kterminallauncherjob] Inherit default process environment
  5. from parent
  6. Before Qt 6.3, an empty (default constructed) QProcessEnvironment caused
  7. QProcess to incorrectly inherit the environment variables from the parent
  8. process. This was fixed in qtbase 5fc9c02a695.
  9. CommandLauncherJob was adjusted for this in 916984940f64e07db9b4d152be9f2a87dda0cfb4,
  10. however here we are overriding its default env with our own default-constructed one
  11. BUG: 482107
  12. ---
  13. src/gui/kterminallauncherjob.cpp | 2 +-
  14. 1 file changed, 1 insertion(+), 1 deletion(-)
  15. diff --git a/src/gui/kterminallauncherjob.cpp b/src/gui/kterminallauncherjob.cpp
  16. index c4e83fb11b..edd99327bd 100644
  17. --- a/src/gui/kterminallauncherjob.cpp
  18. +++ b/src/gui/kterminallauncherjob.cpp
  19. @@ -22,7 +22,7 @@ public:
  20. QString m_fullCommand; // "xterm -e ls"
  21. QString m_desktopName;
  22. QByteArray m_startupId;
  23. - QProcessEnvironment m_environment;
  24. + QProcessEnvironment m_environment{QProcessEnvironment::InheritFromParent};
  25. };
  26. KTerminalLauncherJob::KTerminalLauncherJob(const QString &command, QObject *parent)
  27. --
  28. GitLab