Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 386941 - app-text/acroread missing %U in Exec field in .desktop
Summary: app-text/acroread missing %U in Exec field in .desktop
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Printing Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-12 16:55 UTC by Ian Stakenvicius (RETIRED)
Modified: 2012-01-28 19:34 UTC (History)
0 users

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


Attachments
patch to acroread-9.4.2.ebuild for .desktop file fix (fix-acroread-desktop,565 bytes, patch)
2011-10-12 16:55 UTC, Ian Stakenvicius (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ian Stakenvicius (RETIRED) gentoo-dev 2011-10-12 16:55:45 UTC
Created attachment 289697 [details, diff]
patch to acroread-9.4.2.ebuild for .desktop file fix

As per the freedesktop Desktop Entry Specification, if an application takes files or URL's as arguments then it needs one of %f/%F/%u/%U (as appropriate) as an argument to the command.  Currently, the .desktop file for acroread does not have this, and it means that in i.e. Gnome (2 and 3) one cannot select Acrobat Reader from the "Open With (other applications)" list (and therefore choose it to be a default for .pdf files)

Please fix.

Note also that in Gnome-2, it seems there is an additional bug where Acrobat Reader doesn't show up on the Recommended Applications list, due to the MimeType line not being last.  This is annoying but not something that I think should be fixed on this package.

I am attaching a patch which sed's the .desktop file appropriately.
Comment 1 Andreas K. Hüttel archtester gentoo-dev 2012-01-28 19:34:34 UTC
Applied, thanks!