{"action":"opened","issue":{"url":"https://api.github.com/repos/lutris/lutris/issues/978","repository_url":"https://api.github.com/repos/lutris/lutris","labels_url":"https://api.github.com/repos/lutris/lutris/issues/978/labels{/name}","comments_url":"https://api.github.com/repos/lutris/lutris/issues/978/comments","events_url":"https://api.github.com/repos/lutris/lutris/issues/978/events","html_url":"https://github.com/lutris/lutris/issues/978","id":343382914,"node_id":"MDU6SXNzdWUzNDMzODI5MTQ=","number":978,"title":"Command prefix prevents game from launching","user":{"login":"FREEZEball","id":11259935,"node_id":"MDQ6VXNlcjExMjU5OTM1","avatar_url":"https://avatars3.githubusercontent.com/u/11259935?v=4","gravatar_id":"","url":"https://api.github.com/users/FREEZEball","html_url":"https://github.com/FREEZEball","followers_url":"https://api.github.com/users/FREEZEball/followers","following_url":"https://api.github.com/users/FREEZEball/following{/other_user}","gists_url":"https://api.github.com/users/FREEZEball/gists{/gist_id}","starred_url":"https://api.github.com/users/FREEZEball/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FREEZEball/subscriptions","organizations_url":"https://api.github.com/users/FREEZEball/orgs","repos_url":"https://api.github.com/users/FREEZEball/repos","events_url":"https://api.github.com/users/FREEZEball/events{/privacy}","received_events_url":"https://api.github.com/users/FREEZEball/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-07-22T07:00:12Z","updated_at":"2018-07-22T07:00:12Z","closed_at":null,"author_association":"NONE","body":"When I try to set command prefix for a wine game (WoW/Battle.NET), it does not parse correctly and fails to launch (status message \"Game has quit\"). Command preffix is \r\n`setxkbmap -layout \"ru,us\"`\r\nso that it forces Xorg to use this layout for current session (Wine uses strange slavic layout that does not happen anywhere else in the system). Debug output for this command is\r\n\r\n> DEBUG    2018-07-22 09:44:02,440 [thread]:Running command: \"setxkbmap\" \"-layout\" \"ru,us\" \"/home/fb/.local/share/lutris/runners/wine/staging-3.12-x86_64/bin/wine\" \"/home/fb/Games/bnet/drive_c/Program Files (x86)/Battle.net/Battle.net Launcher.exe\"\r\n> _a lot of stored environment variables_\r\n> DEBUG    2018-07-22 09:44:04,666 [thread]:Start process monitoring\r\n> DEBUG    2018-07-22 09:44:04,666 [thread]:Processes monitored: setxkbmap (29377:Z)\r\n> DEBUG    2018-07-22 09:44:04,667 [thread]:Waiting for processes to exit\r\n> DEBUG    2018-07-22 09:44:04,667 [thread]:Thread is no longer running\r\n> DEBUG    2018-07-22 09:44:04,667 [thread]:Restoring environment\r\n> DEBUG    2018-07-22 09:44:06,442 [game]:Game thread stopped\r\n> DEBUG    2018-07-22 09:44:06,442 [game]:Game thread still running, stopping it (state: running)\r\n> DEBUG    2018-07-22 09:44:06,443 [game]:WoW stopped at Sun, 22 Jul 2018 09:44:06\r\n> INFO     2018-07-22 09:44:06,443 [runner]:Runtime disabled by system configuration\r\n> DEBUG    2018-07-22 09:44:06,663 [wine]:Killing all wine processes: ['/home/fb/.local/share/lutris/runners/wine/staging-3.12-x86_64/bin/wineserver', '-k']\r\n> DEBUG    2018-07-22 09:44:06,663 [wine]:        Wine prefix: /home/fb/Games/bnet\r\n> DEBUG    2018-07-22 09:44:06,664 [wine]:        Wine arch: win64\r\n> DEBUG    2018-07-22 09:44:06,673 [wine]:Waiting for wine processes to terminate\r\n> DEBUG    2018-07-22 09:44:06,674 [thread]:Restoring environment\r\n> DEBUG    2018-07-22 09:44:06,674 [thread]:Killing all remaining processes\r\n\r\nFrom what I understood, it watches for sexkbmap process instead of wine/b.net. When I try to set prefix like this: \r\n`setxkbmap\\ -layout\\ \\\"ru,us\\\"`\r\nto prevent spaces in it, it throws another error:\r\n\r\n> DEBUG    2018-07-22 09:50:38,427 [thread]:Running command: \"setxkbmap -layout \"ru,us\"\" \"/home/fb/.local/share/lutris/runners/wine/staging-3.12-x86_64/bin/wine\" \"/home/fb/Games/bnet/drive_c/Program Files (x86)/Battle.net/Battle.net Launcher.exe\"\r\n\r\nand\r\n> ERROR    2018-07-22 09:50:38,444 [thread]:Failed to execute setxkbmap -layout \"ru,us\" /home/fb/.local/share/lutris/runners/wine/staging-3.12-x86_64/bin/wine /home/fb/Games/bnet/drive_c/Program Files (x86)/Battle.net/Battle.net Launcher.exe: [Errno 2] No such file or directory: 'setxkbmap -layout \"ru,us\"': 'setxkbmap -layout \"ru,us\"'\r\n> FileNotFoundError: [Errno 2] No such file or directory: 'setxkbmap -layout \"ru,us\"': 'setxkbmap -layout \"ru,us\"'\r\n> WARNING  2018-07-22 09:50:38,446 [thread]:No game process available\r\n\r\n_Note that \"No such file or directory\" was translated from Russian by myself, so exact words may differ._\r\n\r\nWhat can I do to work around this in Lutris? Or am I missing the point of an option? I can obviously launch script once per session manually or automatically, but is it possible to do inside the program itself?"}}
{"actor":{"display_login":"FREEZEball"}}