mirror of
https://github.com/vale981/tridactyl
synced 2025-03-04 17:11:40 -05:00
native_main.py: Add ".txt" suffix to temporary file names
Reasons explained in https://github.com/tridactyl/tridactyl/issues/1204 Closes #1204
This commit is contained in:
parent
1577a8e32e
commit
a56c185935
1 changed files with 1 additions and 1 deletions
|
@ -477,7 +477,7 @@ def handleMessage(message):
|
|||
prefix = ""
|
||||
prefix = "tmp_{}_".format(sanitizeFilename(prefix))
|
||||
|
||||
(handle, filepath) = tempfile.mkstemp(prefix=prefix)
|
||||
(handle, filepath) = tempfile.mkstemp(prefix=prefix, suffix=".txt")
|
||||
with os.fdopen(handle, "w") as file:
|
||||
file.write(message["content"])
|
||||
reply["content"] = filepath
|
||||
|
|
Loading…
Add table
Reference in a new issue