[kupfer: 8/8] desktop_launch: Preserve zero-length arguments to programs



commit 9f9f87245c04414a89a41a8046359abbc95576dd
Author: FabiÃn Ezequiel Gallina <fgallina>
Date:   Fri Nov 11 16:39:28 2011 +0100

    desktop_launch: Preserve zero-length arguments to programs
    
    Launchpad-bug: https://bugs.launchpad.net/kupfer/+bug/863349

 kupfer/desktop_launch.py |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/kupfer/desktop_launch.py b/kupfer/desktop_launch.py
index ca76f55..66bd768 100644
--- a/kupfer/desktop_launch.py
+++ b/kupfer/desktop_launch.py
@@ -237,6 +237,10 @@ def replace_format_specs(argv, location, desktop_info, gfilelist):
 
 	new_argv = []
 	for x in argv:
+		if not x:
+			# the arg is an empty string, we don't need extra processing
+			new_argv.append(x)
+			continue
 		succ, newargs = replace_array_format(x)
 		if succ:
 			new_argv.extend(newargs)



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]