Menu invocation fails, as .desktop file calls with -i %f, but there is no image.

Bug #1533039 reported by Scott Cowles Jacobs
58
This bug affects 8 people
Affects Status Importance Assigned to Milestone
Ocrfeeder
Fix Released
Medium
ocrfeeder (Debian)
Fix Released
Unknown
ocrfeeder (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

I installed ocrfeeder, and then found it in the menu "Office" ("Graphics" was my first guess, but...).

When I invoced it, there was a flash of a window, and then it was gone.

I immediately opened a terminal and typed "ocrfeeder", which succeeded.

I keep forgetting that I need to invoke it with the terminal...
I looked at the .desktop file Properties, and found that it calls: "ocrfeeder -i %f"
When I enter that in the terminal, the invocation fails, and the following is printed to stderr:
"
scott@scott-Asus-M2M68-AM-Plus:~$ ocrfeeder -i %f
Traceback (most recent call last):
  File "/usr/bin/ocrfeeder", line 36, in <module>
    studio = Studio()
  File "/usr/lib/python2.7/dist-packages/ocrfeeder/studio/studioBuilder.py", line 133, in __init__
    self.__addImagesToReviewer(imgs)
  File "/usr/lib/python2.7/dist-packages/ocrfeeder/studio/studioBuilder.py", line 330, in __addImagesToReviewer
    self.source_images_controler.addImages(images)
  File "/usr/lib/python2.7/dist-packages/ocrfeeder/studio/widgetModeler.py", line 322, in addImages
    temp_dir)
  File "/usr/lib/python2.7/dist-packages/ocrfeeder/util/graphics.py", line 213, in convertMultiImagesInList
    converted_images = convertMultiImage(image_list[i], temp_dir)
  File "/usr/lib/python2.7/dist-packages/ocrfeeder/util/graphics.py", line 187, in convertMultiImage
    if imghdr.what(image_path) != 'tiff':
  File "/usr/lib/python2.7/imghdr.py", line 14, in what
    f = open(file, 'rb')
IOError: [Errno 2] No such file or directory: '%f'
"

With just "ocrfeeder", the output is (not counting the correctly opening and functioning window):
"
scott@scott-Asus-M2M68-AM-Plus:~$ ocrfeeder
Processing sheet #1: /tmp/ocrfeeder_QT2bJw/page0030_orig.pnm -> /tmp/ocrfeeder_QT2bJw/page0030.pnm
out of deviation range - NO ROTATING

(ocrfeeder:2048): Gtk-CRITICAL **: gtk_widget_realize: assertion 'widget->priv->anchored || GTK_IS_INVISIBLE (widget)' failed
>>>>>>>> 28 22 1746 959
>>>>>>>> 28 22 1746 959
>>>>>>>> 29 12 1746 959
Processing sheet #1: /tmp/ocrfeeder_QT2bJw/page0031_orig.pnm -> /tmp/ocrfeeder_QT2bJw/page0031.pnm
out of deviation range - NO ROTATING

(ocrfeeder:2048): Gtk-CRITICAL **: gtk_widget_realize: assertion 'widget->priv->anchored || GTK_IS_INVISIBLE (widget)' failed
>>>>>>>> 40 119 1590 1354
>>>>>>>> 40 119 1590 1354
>>>>>>>> 42 109 1590 1354
"

(I include this as well, in case the output contains something else you think ought to be looked at...)

For my own use, I will remove the "-i %f"from the .desktop file Properties, so I can use the menu entry.
I imagine that is what needs to be done to the package file as well.

ProblemType: Bug
DistroRelease: Ubuntu 15.10
Package: ocrfeeder 0.8.1-2
ProcVersionSignature: Ubuntu 4.2.0-23.28-generic 4.2.6
Uname: Linux 4.2.0-23-generic i686
NonfreeKernelModules: nvidia
ApportVersion: 2.19.1-0ubuntu5
Architecture: i386
CurrentDesktop: LXDE
Date: Mon Jan 11 22:15:19 2016
PackageArchitecture: all
SourcePackage: ocrfeeder
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Scott Cowles Jacobs (scott092707) wrote :
Revision history for this message
Launchpad Janitor (janitor) wrote :

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

Changed in ocrfeeder (Ubuntu):
status: New → Confirmed
Changed in ocrfeeder (Debian):
status: Unknown → Confirmed
Changed in ocrfeeder:
importance: Unknown → Medium
status: Unknown → Fix Released
Changed in ocrfeeder (Debian):
status: Confirmed → Fix Released
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.