Skip to content

Commit ff57885

Browse files
authored
feat: include mime queries in support package (#434)
slightly helpful when debugging, we'll still need more information than this to properly debug, but it's a start
1 parent 1db5096 commit ff57885

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

ou_dedetai/control.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,10 @@ def get_support(app: App) -> str:
143143
["glxinfo"],
144144
["free", "-h"],
145145
["inxi", "-F"],
146-
["df", "-h"]
146+
["df", "-h"],
147+
["xdg-mime", "query", "default", "x-scheme-handler/https"],
148+
["xdg-mime", "query", "default", "x-scheme-handler/logos4"],
149+
["xdg-mime", "query", "default", "x-scheme-handler/libronixdls"]
147150
]
148151

149152
if app.conf._raw.wine_binary:
@@ -160,9 +163,7 @@ def get_support(app: App) -> str:
160163
text=True,
161164
env=subprocess_env
162165
)
163-
# This writes to the root of the zip, which is file considering this is
164-
# just a support package
165-
zip.writestr(f"{command[0]}.out", output)
166+
zip.writestr(f"/tmp/{" ".join(command).replace("/","_")}", output)
166167
except Exception as e:
167168
# Some of these commands may not be found.
168169
logging.debug(

0 commit comments

Comments
 (0)