docs: def _setup_process_environment(self, env):
          """
          Sets up the process environment.
          """
          environ = self._process.processEnvironment()
          if env is None:
              env = {}
          for k, v in os.environ.items():
              environ.insert(k, v)
          for k, v in env.items():
              environ.insert(k, v)
          if sys.platform != 'win32':
              environ.insert('TERM', 'xterm')
              environ.insert('LINES', '24')
              environ.insert('COLUMNS', '450')
          environ.insert('PYTHONUNBUFFERED', '1')
          environ.insert('QT_LOGGING_TO_CONSOLE', '1')
          return environ