GNOME Dictionary plugin doesn't work

Bug #682229 reported by Žygimantas Beručka
54
This bug affects 10 people
Affects Status Importance Assigned to Milestone
gnome-do (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Binary package hint: gnome-do

GNOME Dictionary plugin of gnome-do (version 0.8.3.1+dfsg-2ubuntu1; maverick) doesn't work because somehow it tries to execute a wrong path. Instead of being relative to $PATH, it's relative to $HOME. The following is an error message I get when launching it from a terminal:

gvfs-open: file:///home/zygis/gnome-dictionary%20--look-up%20hendiadys: error opening location: Error stating file '/home/zygis/gnome-dictionary --look-up hendiadys': No such file or directory

Tags: patch
Revision history for this message
Dennis van Dok (dvandok-gmail) wrote :

I can confirm this; the error can be seen from ${HOME}/.xsession-errors as well.

Revision history for this message
Dennis van Dok (dvandok-gmail) wrote :

Some more information; the source of the problem is the call to System.Diagnostics.Process.Start:

  cmd = string.Format ("gnome-dictionary --look-up \"{0}\"", word);
  System.Diagnostics.Process.Start (cmd);

The error message reads as though the system tries to run a file named "gnome-dictionary --lookup bla", that is, including the spaces and dashes, and of course there is no such thing. The fix is to use a different call with two arguments: the program and then the arguments.

  cmd = string.Format ("--look-up \"{0}\"", word);
  System.Diagnostics.Process.Start ("/usr/bin/gnome-dictionary", cmd);

tags: added: patch
Revision history for this message
AmateurDev (guitrguy595) wrote :

Do you add the patch to Gnome Dictionary or Gnome Do?

Revision history for this message
Dennis van Dok (dvandok-gmail) wrote :

The patch should be applied to the sources of gnome-do-plugins-0.8.2.1 as obtained by:

apt-get source gnome-do-plugins

I don't know how/where this is managed upstream.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in gnome-do (Ubuntu):
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.