[Spice-devel] [PATCH] Fix launching xsession script
ValdikSS
iam at valdikss.org.ru
Wed Aug 11 09:57:23 UTC 2021
os.spawnlpe() has the following syntax:
os.spawnlpe(mode, file, ... /* argv */, env)
Python 3.9 does not allow current syntax and complains on missing argv[0].
---
scripts/Xspice | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/scripts/Xspice b/scripts/Xspice
index 927dcb1..b1244b6 100755
--- a/scripts/Xspice
+++ b/scripts/Xspice
@@ -355,7 +355,7 @@ else:
args.vdagent_udcs_path])
if args.xsession:
environ = os.environ
- os.spawnlpe(os.P_NOWAIT, args.xsession, environ)
+ os.spawnlpe(os.P_NOWAIT, args.xsession, args.xsession, environ)
try:
xorg.wait()
--
2.31.1
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature
Type: application/pgp-signature
Size: 840 bytes
Desc: OpenPGP digital signature
URL: <https://lists.freedesktop.org/archives/spice-devel/attachments/20210811/486166b8/attachment.sig>
More information about the Spice-devel
mailing list