Fix for #3684 (Send to eReader Fails with Attachment not found, if path(s) contains spaces)

Merge remote-tracking branch 'embed_helper-arg-fix/embed_helper-arg-fix'
This commit is contained in:
Ozzie Isaacs
2026-08-21 18:26:08 +02:00
2 changed files with 1 additions and 3 deletions
+1 -1
View File
@@ -28,7 +28,7 @@ log = logger.create()
def do_calibre_export(book_id, book_format):
try:
quotes = [4, 6]
quotes = [5, 7]
tmp_dir = get_temp_dir()
calibredb_binarypath = get_calibre_binarypath("calibredb")
temp_file_name = str(uuid4())
-2
View File
@@ -22,9 +22,7 @@ import subprocess
import re
def process_open(command, quotes=(), env=None, sout=subprocess.PIPE, serr=subprocess.PIPE, newlines=True):
# Linux py2.7 encode as list without quotes no empty element for parameters
# linux py3.x no encode and as list without quotes no empty element for parameters
# windows py2.7 encode as string with quotes empty element for parameters is okay
# windows py 3.x no encode and as string with quotes empty element for parameters is okay
# separate handling for windows and linux
if os.name == 'nt':