GNOME Bugzilla – Bug 418014
Error when opening files without a default application
Last modified: 2007-12-20 23:49:57 UTC
Steps to reproduce: 1. Find a file without an application assigned to it's mime type, ex as indicated by: right-click on file -> Properties -> Open With 2. Use deskbar-applet to search for the file (I used the "Beagle Live" plugin) 3. Open the file Stack trace: Distribution: Unknown Gnome Release: 2.16.3 2007-02-01 (Archlinux) BugBuddy Version: 2.16.1 System: Linux 2.6.20-ARCH #1 SMP PREEMPT Sat Mar 10 10:12:25 CET 2007 i686 X Vendor: The X.Org Foundation X Vendor Release: 70200000 Selinux: No Accessibility: Disabled Memory status: size: 0 vsize: 0 resident: 0 share: 0 rss: 0 rss_rlim: 0 CPU usage: start_time: 0 rtime: 0 utime: 0 stime: 0 cutime:0 cstime: 0 timeout: 0 it_real_value: 0 frequency: 0 ----------- .xsession-errors (12 sec old) --------------------- ** Message: volume = 0 ** Message: drive = 0 ** Message: volume = 0 ** Message: drive = 0 ** Message: volume = 0 ** Message: drive = 0 ** Message: volume = 0 ** Message: drive = 0 ** Message: volume = 0 thread 0x848ef70 leaving pool 0x81a6a80 for global pool. thread 0x85bc6b0 started for pool 0x81a6a80. thread 0x85bc6b0 in pool 0x81a6a80 waits for up to a 1/2 second for task (1 running, 1 unprocessed). thread 0x85bc6b0 in pool 0x81a6a80 calling func. thread 0x85bc6b0 in pool 0x81a6a80 waits for up to a 1/2 second for task (1 running, 0 unprocessed). thread 0x85bc6b0 leaving pool 0x81a6a80 for global pool. -------------------------------------------------- Traceback (most recent call last):
+ Trace 118395
match.action(text)
action(self.result)
"action": lambda d: gnome.url_show(d["uri"]),
Other information:
*** Bug 454790 has been marked as a duplicate of this bug. ***
*** Bug 460141 has been marked as a duplicate of this bug. ***
*** Bug 439621 has been marked as a duplicate of this bug. ***
Created attachment 100964 [details] [review] Patch for bug #418014 This patch adds a check whether a default application exists to OpenFileAction.is_valid(). This makes the action unavailable, but not yet invisible to the user; the latter requires an implementation in deskbar's core which I'll try to provide, too.
I committed your patch to svn trunk. As you mentioned there's still work to do.
I'll try to write the missing invalid actions support in the next few days.
Created attachment 101329 [details] [review] Patch for hiding invalid actions This extends CuematicModel.__append_match() to remove invalid actions and omit the match completely if no actions are left.
Thanks a lot for the patch. It's committed to svn trunk.