Bug 1626810 - missing icon in Xfce's applications menu; policytool only: "#ARCH#" in name and comment of desktop file
Summary: missing icon in Xfce's applications menu; policytool only: "#ARCH#" in name a...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: java-1.8.0-openjdk
Version: 29
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: jiri vanek
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-09-09 00:45 UTC by René Genz
Modified: 2018-12-05 11:41 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-12-05 11:41:09 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description René Genz 2018-09-09 00:45:06 UTC
Description of problem:
In Xfce's application list the icon provided by the package is not used. Hence a generic icon is used.

Furthermore, there is a strange string, "#ARCH#", in the desktop file of the policytool.

Version-Release number of selected component (if applicable):
$ rpm -qf /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.181.b15-0.fc29.x86_64/jre/bin/policytool
java-1.8.0-openjdk-1.8.0.181.b15-0.fc29.x86_64

How reproducible:
easy, 100%

Steps to Reproduce:
1. install/start Xfce as desktop environment
2. go to: Applications -- Settings

Actual results:
Item "OpenJDK 8 Policy Tool #ARCH#" does not use provided icon file, but the generic black/white icon.

Expected results:
Use provided icon file.
Maybe replace "#ARCH#" with actual arch of computer, i.e. x86_64 or x86 or ...

Additional info:
Problem can be found in former Fedora versions too, f.i. Fedora 28.

Fixing the icon here will also fix it for this item:
Applications -- Development -- OpenJDK 8 Monitoring & Management Console 1.8.0.181-7.b13.fc28.x86_64
provided by package java-1.8.0-openjdk-devel



The problem with the icon file: the desktop file requires a file that is not provided by the package.
The desktop file requires:
$ grep Icon `rpm -ql java-1.8.0-openjdk | grep desktop`
Icon=java-8-openjdk


Which is not available:
$ sudo dnf whatprovides "*/java-8-openjdk*"
...
Error: No Matches found


The package provides icons, but with a different name:
$ rpm -ql java-1.8.0-openjdk
...
/usr/share/applications/java-1.8.0-openjdk-1.8.0.181.b15-0.fc29.x86_64-policytool.desktop
/usr/share/icons/hicolor/16x16/apps/java-1.8.0.png
/usr/share/icons/hicolor/24x24/apps/java-1.8.0.png
/usr/share/icons/hicolor/32x32/apps/java-1.8.0.png
/usr/share/icons/hicolor/48x48/apps/java-1.8.0.png


Two solutions are possible:
Either update desktop file to use "java-1.8.0" in the Icon line.

Or create a copy or symlink to these files, f.i. with:
$ sudo ln -s /usr/share/icons/hicolor/48x48/apps/java-1.8.0.png /usr/share/icons/hicolor/48x48/apps/java-8-openjdk.png
and update icon cache file:
$ sudo gtk-update-icon-cache /usr/share/icons/hicolor
gtk-update-icon-cache: Cache file created successfully.


In Xfce you might need to log out and in again in order to see the update.

Comment 1 jiri vanek 2018-09-11 09:21:59 UTC
hi!

Thanx for bug. Indeed it is wrong. Both issues (unexpanded ARCH and pure 8 isntead of 1.8.0).

Can you please verify state of it also fo jconsole?

Comment 3 René Genz 2018-09-12 23:05:01 UTC
For both packages the problems have been fixed by updates to *1.8.0.181.b15-1.fc29.rpm. Thank you :)

Comment 4 jiri vanek 2018-12-05 11:41:09 UTC
thnax for confirmation


Note You need to log in before you can comment on or make changes to this bug.