Bug 994738

Summary: xdg-mime default command incorrectly assumes kde-config is installed
Product: Red Hat Enterprise Linux 6 Reporter: Richard Lloyd <rkl>
Component: xdg-utilsAssignee: Alexander Larsson <alexl>
Status: CLOSED WONTFIX QA Contact: Desktop QE <desktop-qa-list>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.4CC: tpelka
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-12-06 10:20:58 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Richard Lloyd 2013-08-07 22:42:33 UTC
Description of problem:
xdg-mime (from xdg-utils) can be installed independently of KDE, but the "xdg-mime default" command calls kde-config (from kdelibs3) without first checking if it is installed.

Version-Release number of selected component (if applicable):
1.0.2

How reproducible:
All the time if KDE (specifically kdelibs3) isn't installed.

Steps to Reproduce:
1. Install a KDE-less RHEL 6 (e.g. select GNOME desktop and make sure kdelibs3 isn't installed, which it shouldn't be).
2. If xdg-utils isn't installed, then run "yum install xdg-utils" as root
3. Set Firefox to handle HTML (advisable to do this as non-root user):
   xdg-mime default mozilla-firefox.desktop text/html

Actual results (as a non-root user):
/usr/bin/xdg-mime: line 531: kde-config: command not found
mkdir: cannot create directory `: No such file or directory
/usr/bin/xdg-mime: line 542: /profilerc.new: Permission denied

Expected results:
After running "yum install kdelibs3", the xdg-mime default command runs correctly with no errors.

Additional info:
The make_default_kde() function in /usr/bin/xdg-mime needs to do a check for the existence of /usr/bin/kde-config and do nothing (return) if it's not present. Example code somewhere in the function (e.g. just before the kde-config call):

if [ ! -x /usr/bin/kde-config ]
then
   return
fi

Comment 2 RHEL Program Management 2013-10-13 23:17:07 UTC
This request was evaluated by Red Hat Product Management for
inclusion in the current release of Red Hat Enterprise Linux.
Because the affected component is not scheduled to be updated
in the current release, Red Hat is unable to address this
request at this time.

Red Hat invites you to ask your support representative to
propose this request, if appropriate, in the next release of
Red Hat Enterprise Linux.

Comment 3 Jan Kurik 2017-12-06 10:20:58 UTC
Red Hat Enterprise Linux 6 is in the Production 3 Phase. During the Production 3 Phase, Critical impact Security Advisories (RHSAs) and selected Urgent Priority Bug Fix Advisories (RHBAs) may be released as they become available.

The official life cycle policy can be reviewed here:

http://redhat.com/rhel/lifecycle

This issue does not meet the inclusion criteria for the Production 3 Phase and will be marked as CLOSED/WONTFIX. If this remains a critical requirement, please contact Red Hat Customer Support to request a re-evaluation of the issue, citing a clear business justification. Note that a strong business justification will be required for re-evaluation. Red Hat Customer Support can be contacted via the Red Hat Customer Portal at the following URL:

https://access.redhat.com/