Use shlex to split xboxdrv arguments (Fixes #1071)

This commit is contained in:
Mathieu Comandon 2018-11-02 15:19:14 -07:00
parent f645944dec
commit 84af57d966

View file

@ -411,7 +411,7 @@ class Game:
command = [
"pkexec", "xboxdrv", "--daemon", "--detach-kernel-driver",
"--dbus", "session", "--silent"
] + config.split()
] + shlex.split(config)
logger.debug("[xboxdrv] %s", ' '.join(command))
self.xboxdrv_thread = LutrisThread(command, include_processes=['xboxdrv'])
self.xboxdrv_thread.set_stop_command(self.xboxdrv_stop)