Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 350459 - dev-java/java-config-2.1.11-r3 should not install /usr/share/mimelnk/application/x-java-jnlp-file.desktop
Summary: dev-java/java-config-2.1.11-r3 should not install /usr/share/mimelnk/applicat...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-03 12:47 UTC by Samuli Suominen (RETIRED)
Modified: 2011-03-28 08:57 UTC (History)
0 users

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


Attachments
Fix. (remove-deprecated-file.patch,382 bytes, patch)
2011-03-28 08:10 UTC, Samuli Suominen (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Samuli Suominen (RETIRED) gentoo-dev 2011-01-03 12:47:48 UTC
- /usr/share/mimelnk is deprecated location
- the installed .desktop file is broken:

$ desktop-file-validate /usr/share/mimelnk/application/x-java-jnlp-file.desktop
/usr/share/mimelnk/application/x-java-jnlp-file.desktop: warning: value "MimeType" for key "Type" in group "Desktop Entry" is deprecated
/usr/share/mimelnk/application/x-java-jnlp-file.desktop: error: value "application/x-java-jnlp-file" for string list key "MimeType" in group "Desktop Entry" does not have a semicolon (';') as trailing character
/usr/share/mimelnk/application/x-java-jnlp-file.desktop: warning: key "Patterns" in group "Desktop Entry" is deprecated
/usr/share/mimelnk/application/x-java-jnlp-file.desktop: warning: key "DefaultApp" in group "Desktop Entry" is deprecated
/usr/share/mimelnk/application/x-java-jnlp-file.desktop: error: required key "Name" in group "Desktop Entry" is not present

the solution is to install a .xml file to /usr/share/mime/packages/ instead, to handle the *.jnlp files instead

then is should call fdo-mime.eclass, and "fdo-mime_mime_database_update" in pkg_postinst and pkg_postrm
Comment 1 Samuli Suominen (RETIRED) gentoo-dev 2011-01-03 12:50:50 UTC
as well as installing a .desktop file to /usr/share/applications/ to handle the MimeType=application/x-java-jnlp-file

for that fdo-mime.eclass's fdo-mime_desktop_database_update should be called in pkg_post{rm,inst}
Comment 2 Samuli Suominen (RETIRED) gentoo-dev 2011-01-03 12:51:44 UTC
or you can just get rid of the whole file if it's not important, I doubt it has been working for a long time because of this, anyway.
Comment 3 Samuli Suominen (RETIRED) gentoo-dev 2011-03-28 08:10:44 UTC
Created attachment 267503 [details, diff]
Fix.

Remove unnecessary and deprecated file, from deprecated location... The /usr/share/applications/javaws.desktop already has proper MimeType line and supersedes this.
Comment 4 Samuli Suominen (RETIRED) gentoo-dev 2011-03-28 08:57:40 UTC
+  28 Mar 2011; Samuli Suominen <ssuominen@gentoo.org>
+  java-config-2.1.11-r3.ebuild:
+  Don't install deprecated x-java-jnlp-file.desktop to /usr/share/mimelnk wrt
+  #350459. Signed off by Alistair Bush.