[kupfer] objects: Print Error when application info says it can't open files



commit 9a7c63e4e4ecb0ab9acbfd6ad5ed2f4262dc79aa
Author: Ulrik Sverdrup <ulrik sverdrup gmail com>
Date:   Mon Aug 31 12:45:22 2009 +0200

    objects: Print Error when application info says it can't open files

 kupfer/objects.py |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/kupfer/objects.py b/kupfer/objects.py
index 7f96bbf..b93b0fe 100644
--- a/kupfer/objects.py
+++ b/kupfer/objects.py
@@ -576,7 +576,8 @@ class OpenWith (Action):
 
 	def activate(self, leaf):
 		if not self.desktop_item.supports_files() and not self.desktop_item.supports_uris():
-			print self, "does not support opening files"
+			pretty.print_error(__name__, self.desktop_item,
+				"says it does not support opening files, still trying to open")
 		utils.launch_app(self.desktop_item, paths=(leaf.object,))
 
 	def get_description(self):



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