diff options
author | Seungha Yang <seungha@centricular.com> | 2022-06-03 03:22:03 +0900 |
---|---|---|
committer | GStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org> | 2022-06-03 18:55:36 +0000 |
commit | 12fdf93ba40487bcbfc051ca651e4e9ee7c0d689 (patch) | |
tree | ecbdb977da09f2f1e2214777d1971809c54fa401 /gst-env.py | |
parent | 77937f9398a384a9ab6bcccd8352155445f5ea4f (diff) | |
download | gstreamer-12fdf93ba40487bcbfc051ca651e4e9ee7c0d689.tar.gz |
gst-env: Add support for PowerShell 7
The executable binary name of "PowerShell 7" is "pwsh.exe"
which is different from system default installed
"Windows PowerShell (version 5.x or older)"
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2545>
Diffstat (limited to 'gst-env.py')
-rwxr-xr-x | gst-env.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/gst-env.py b/gst-env.py index 51fb913218..862b40ec94 100755 --- a/gst-env.py +++ b/gst-env.py @@ -549,9 +549,8 @@ if __name__ == "__main__": env = get_subprocess_env(options, gst_version) if os.name == 'nt': shell = get_windows_shell() - if shell == 'powershell.exe': - new_args = ['powershell.exe'] - new_args += ['-NoLogo'] + if shell in ['powershell.exe', 'pwsh.exe']: + new_args = [shell, '-NoLogo'] if not args: prompt = 'function global:prompt { "[gst-' + gst_version + '"+"] PS " + $PWD + "> "}' new_args += ['-NoExit', '-Command', prompt] |