Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 421363 - x11-apps/xinput_calibrator-0.7.5[-gtk] installs incorrect desktop entry
Summary: x11-apps/xinput_calibrator-0.7.5[-gtk] installs incorrect desktop entry
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo X packagers
Depends on:
Reported: 2012-06-16 11:37 UTC by Maxim Kammerer
Modified: 2013-08-20 22:35 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---

xinput_calibrator.desktop (xinput_calibrator.desktop,296 bytes, text/plain)
2013-08-20 22:35 UTC, Maxim Kammerer

Note You need to log in before you can comment on or make changes to this bug.
Description Maxim Kammerer 2012-06-16 11:37:57 UTC
For USE=-gtk, /usr/share/applications/xinput_calibrator.desktop contains:

  Exec=/bin/sh -c "xinput_calibrator; cat"

The reason for "cat" is that xinput_calibrator prints vital information on standard output upon termination. At least on LXPanel + Openbox setup, this results in "Cannot parse command line arguments" message. The problem is with the quotes; suggest replacing the line with (working with LXPanel):

  Exec=sh -c xinput_calibrator;read\ x

Using "read" instead of "cat" here so that the user can just it Enter instead of closing the window (or non-intuitive Ctrl-D). An argument to "read" is required in dash.

Another option would be a wrapper script.
Comment 1 Maxim Kammerer 2013-08-20 22:35:12 UTC
Created attachment 356538 [details]