From 7f46fbd4b18175551af0da1dd948d135d2ca9d04 Mon Sep 17 00:00:00 2001 From: Thomas Perl Date: Fri, 8 Apr 2011 14:16:17 +0200 Subject: [PATCH] Win32: Fix issues with backslashes in commands --- src/gpodder/util.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/gpodder/util.py b/src/gpodder/util.py index 06d33d08..f321a629 100644 --- a/src/gpodder/util.py +++ b/src/gpodder/util.py @@ -760,6 +760,10 @@ def format_desktop_command(command, filenames): each filename if the application does not support multiple file names or one for all filenames (%U, %F or unknown). """ + # Replace backslashes with slashes to fix win32 issues + # (even on win32, "/" works, but "\" does not) + command = command.replace('\\', '/') + command = shlex.split(command) command_before = command -- 2.11.4.GIT