mirror of
https://github.com/lutris/lutris
synced 2024-10-14 19:53:53 +00:00
And the real fix - when applying launch config, we won't try to extract the runner's command from the existing command line. We'll get it afresh from the runner.
This way, if you are using a flatpak, you can have a command that's several 'args' long, and for Linux it is 0 args log. The launch configs exe and args go on the end of that. This should fix #5148
This commit is contained in:
parent
0de52b7045
commit
553b140b7a
|
@ -9,7 +9,7 @@ from lutris.api import format_runner_version, get_default_runner_version_info
|
|||
from lutris.command import MonitoredCommand
|
||||
from lutris.config import LutrisConfig
|
||||
from lutris.database.games import get_game_by_field
|
||||
from lutris.exceptions import GameConfigError, MisconfigurationError, MissingExecutableError, UnavailableLibrariesError
|
||||
from lutris.exceptions import MisconfigurationError, MissingExecutableError, UnavailableLibrariesError
|
||||
from lutris.runners import RunnerInstallationError
|
||||
from lutris.util import flatpak, strings, system
|
||||
from lutris.util.extract import ExtractFailure, extract_archive
|
||||
|
@ -303,13 +303,8 @@ class Runner: # pylint: disable=too-many-public-methods
|
|||
|
||||
if "command" in launch_config:
|
||||
command = strings.split_arguments(launch_config["command"])
|
||||
elif "command" in gameplay_info:
|
||||
command = [gameplay_info["command"][0]]
|
||||
else:
|
||||
logger.debug("No command in %s", gameplay_info)
|
||||
logger.debug(launch_config)
|
||||
# The 'file' sort of gameplay_info cannot be made to use a configuration
|
||||
raise GameConfigError(_("The runner could not find a command to apply the configuration to."))
|
||||
command = self.get_command()
|
||||
|
||||
exe = self.get_launch_config_exe(launch_config)
|
||||
if exe:
|
||||
|
|
Loading…
Reference in a new issue