Skip to content

Commit 6daac0f

Browse files
committed
backend: create_desktop_entry: Quote passed links, to allow symbols like &
1 parent 72ceda4 commit 6daac0f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bottles/backend/utils/manager.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ def create_desktop_entry(config, program: dict, skip_icon: bool = False, custom_
239239
with open(desktop_file, "w") as f:
240240
f.write(f"[Desktop Entry]\n")
241241
f.write(f"Name={program.get('name')}\n")
242-
f.write(f"Exec={cmd_cli} run -p {shlex.quote(program.get('name'))} -b '{config.get('Name')}' -- %u\n")
242+
f.write(f"Exec={cmd_cli} run -p {shlex.quote(program.get('name'))} -b '{config.get('Name')}' -- '\"%u\"'\n")
243243
f.write(f"Type=Application\n")
244244
f.write(f"Terminal=false\n")
245245
f.write(f"Categories=Application;\n")

0 commit comments

Comments
 (0)