From fc2932f7ddbbb0b062eae1ea27040d0c193a94a0 Mon Sep 17 00:00:00 2001 From: kramo <93832451+kra-mo@users.noreply.github.com> Date: Fri, 24 Mar 2023 22:56:12 +0100 Subject: [PATCH] Cleanups --- src/utils/bottles_parser.py | 3 +-- src/utils/get_games.py | 2 +- src/utils/run_command.py | 1 - 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/utils/bottles_parser.py b/src/utils/bottles_parser.py index a2426ab..315ca5b 100644 --- a/src/utils/bottles_parser.py +++ b/src/utils/bottles_parser.py @@ -18,7 +18,6 @@ # SPDX-License-Identifier: GPL-3.0-or-later import os -import shlex import time import yaml @@ -113,7 +112,7 @@ def bottles_parser(parent_widget, action): values["name"] = game["name"] values["executable"] = [ "xdg-open", - f'bottles:run/{game["bottle"]["name"]}/{game["name"]}' + f'bottles:run/{game["bottle"]["name"]}/{game["name"]}', ] values["hidden"] = False values["source"] = "bottles" diff --git a/src/utils/get_games.py b/src/utils/get_games.py index dd40ed8..c727c7c 100644 --- a/src/utils/get_games.py +++ b/src/utils/get_games.py @@ -41,6 +41,6 @@ def get_games(game_ids=None): for game in game_files: with open(os.path.join(games_dir, game), "r") as open_file: data = json.loads(open_file.read()) - games[data["game_id"]] = data + games[data["game_id"]] = data return games diff --git a/src/utils/run_command.py b/src/utils/run_command.py index 78b1d0f..4729284 100644 --- a/src/utils/run_command.py +++ b/src/utils/run_command.py @@ -33,7 +33,6 @@ def run_command(executable): else executable # Windows if os.name == "nt" else executable, # Linux/Others - shell=False, # If true, the extra arguments would incorrectly be given to the shell instead. start_new_session=True, creationflags=subprocess.CREATE_NEW_PROCESS_GROUP if os.name == "nt" else 0, )