From 26656583fc9e50ea7f43751b5529e1aa4a38b349 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sat, 22 Feb 2014 14:37:21 +0530 Subject: [PATCH] ... --- src/calibre/linux.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/calibre/linux.py b/src/calibre/linux.py index 39f751321c..58e614e477 100644 --- a/src/calibre/linux.py +++ b/src/calibre/linux.py @@ -110,7 +110,7 @@ if not frozen_path or not os.path.exists(os.path.join(frozen_path, 'resources', for f in {mime_resources!r}: cmd = ['xdg-mime', 'uninstall', f] print ('Removing mime resource:', os.path.basename(f)) - ret = subprocess.call(cmd) + ret = subprocess.call(cmd, shell=False) if ret != 0: print ('WARNING: Failed to remove mime resource', f) @@ -135,7 +135,7 @@ def remove_icon(context, name, size, update=False): if not update: cmd.insert(2, '--noupdate') print ('Removing icon:', name, 'from context:', context, 'at size:', size) - ret = subprocess.call(cmd) + ret = subprocess.call(cmd, shell=False) if ret != 0: print ('WARNING: Failed to remove icon', name) @@ -149,7 +149,7 @@ mr = {menu_resources!r} for f in mr: cmd = ['xdg-desktop-menu', 'uninstall', f] print ('Removing desktop file:', f) - ret = subprocess.call(cmd) + ret = subprocess.call(cmd, shell=False) if ret != 0: print ('WARNING: Failed to remove menu item', f)