Cleanups
This commit is contained in:
@@ -18,7 +18,6 @@
|
|||||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
|
||||||
import os
|
import os
|
||||||
import shlex
|
|
||||||
import time
|
import time
|
||||||
|
|
||||||
import yaml
|
import yaml
|
||||||
@@ -113,7 +112,7 @@ def bottles_parser(parent_widget, action):
|
|||||||
values["name"] = game["name"]
|
values["name"] = game["name"]
|
||||||
values["executable"] = [
|
values["executable"] = [
|
||||||
"xdg-open",
|
"xdg-open",
|
||||||
f'bottles:run/{game["bottle"]["name"]}/{game["name"]}'
|
f'bottles:run/{game["bottle"]["name"]}/{game["name"]}',
|
||||||
]
|
]
|
||||||
values["hidden"] = False
|
values["hidden"] = False
|
||||||
values["source"] = "bottles"
|
values["source"] = "bottles"
|
||||||
|
|||||||
@@ -33,7 +33,6 @@ def run_command(executable):
|
|||||||
else executable # Windows
|
else executable # Windows
|
||||||
if os.name == "nt"
|
if os.name == "nt"
|
||||||
else executable, # Linux/Others
|
else executable, # Linux/Others
|
||||||
shell=False, # If true, the extra arguments would incorrectly be given to the shell instead.
|
|
||||||
start_new_session=True,
|
start_new_session=True,
|
||||||
creationflags=subprocess.CREATE_NEW_PROCESS_GROUP if os.name == "nt" else 0,
|
creationflags=subprocess.CREATE_NEW_PROCESS_GROUP if os.name == "nt" else 0,
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user