Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 386941

Summary: app-text/acroread missing %U in Exec field in .desktop
Product: Gentoo Linux Reporter: Ian Stakenvicius (RETIRED) <axs>
Component: Current packagesAssignee: Printing Team <printing>
Status: RESOLVED FIXED    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: patch to acroread-9.4.2.ebuild for .desktop file fix

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!