From 49e6daabd7b2af4d4a3f570466d10a641d4e70c0 Mon Sep 17 00:00:00 2001
From: Yann Leboulanger <asterix@lagaule.org>
Date: Thu, 10 Mar 2005 17:19:55 +0000
Subject: [PATCH] do not use spawnvp under windows (user will have to give the
 full path to the application)

---
 plugins/gtkgui/gtkgui.py | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/plugins/gtkgui/gtkgui.py b/plugins/gtkgui/gtkgui.py
index 5aea78217e..9fc7c9ab50 100644
--- a/plugins/gtkgui/gtkgui.py
+++ b/plugins/gtkgui/gtkgui.py
@@ -3026,7 +3026,10 @@ class plugin:
 			args = conf.split()
 			app = args[0]
 		args.append(url)
-		os.spawnvp(os.P_NOWAIT, app, args)
+		if os.name == 'posix':
+			os.spawnvp(os.P_NOWAIT, app, args)
+		else:
+			os.spawnv(os.P_NOWAIT, app, args)
 
 	def play_timeout(self, pid):
 		pidp, r = os.waitpid(pid, os.WNOHANG)
-- 
GitLab