[PATCH] Fix launching xsession script

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


Attachment: OpenPGP_signature
Description: OpenPGP digital signature


[Index of Archives]     [Linux Virtualization]     [Linux Virtualization]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]     [Monitors]