After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 418014 - Error when opening files without a default application
Error when opening files without a default application
Status: RESOLVED FIXED
Product: deskbar-applet
Classification: Deprecated
Component: general
2.16.x
Other All
: Normal normal
: 2.22
Assigned To: Deskbar Applet Maintainer(s)
Deskbar Applet Maintainer(s)
: 439621 454790 460141 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2007-03-13 21:38 UTC by Martin Nyhus
Modified: 2007-12-20 23:49 UTC
See Also:
GNOME target: ---
GNOME version: 2.15/2.16


Attachments
Patch for bug #418014 (1.19 KB, patch)
2007-12-14 17:13 UTC, Denis Washington
committed Details | Review
Patch for hiding invalid actions (1.79 KB, patch)
2007-12-20 17:19 UTC, Denis Washington
committed Details | Review

Description Martin Nyhus 2007-03-13 21:38:00 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):
  • File "/opt/gnome/lib/python2.4/site-packages/deskbar/DeskbarApplet.py", line 125 in on_match_selected
    match.action(text)
  • File "/opt/gnome/lib/deskbar-applet/handlers/beagle-live.py", line 216 in action
    action(self.result)
  • File "/opt/gnome/lib/deskbar-applet/handlers/beagle-live.py", line 98 in <lambda>
    "action": lambda d: gnome.url_show(d["uri"]),
GError: There is no default action associated with this location.

Other information:
Comment 1 palfrey 2007-08-17 16:42:35 UTC
*** Bug 454790 has been marked as a duplicate of this bug. ***
Comment 2 palfrey 2007-08-17 16:44:16 UTC
*** Bug 460141 has been marked as a duplicate of this bug. ***
Comment 3 Sebastian Pölsterl 2007-09-18 09:40:09 UTC
*** Bug 439621 has been marked as a duplicate of this bug. ***
Comment 4 Denis Washington 2007-12-14 17:13:11 UTC
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.
Comment 5 Sebastian Pölsterl 2007-12-16 20:31:33 UTC
I committed your patch to svn trunk. As you mentioned there's still work to do.
Comment 6 Denis Washington 2007-12-19 09:31:00 UTC
I'll try to write the missing invalid actions support in the next few days.
Comment 7 Denis Washington 2007-12-20 17:19:20 UTC
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.
Comment 8 Sebastian Pölsterl 2007-12-20 23:49:57 UTC
Thanks a lot for the patch. It's committed to svn trunk.