xdg-mime not passing URL correctly in RHEL 6
Environment
- Red Hat Enterprise Linux (RHEL) 6
Issue
- xdg-mime not passing URL correctly.
Resolution
An internal private bug (bz980163) has been opened to track this issue. If you have experienced this bug please open a case with Red Hat Support 1.
Root Cause
The eval line, $1
needs to be quoted to work correctly.
https://bugs.freedesktop.org/show_bug.cgi?id=45859#c2
for x in `echo "$PATH:/opt/gnome/bin" | sed 's/:/ /g'`; do
if [ -x $x/update-mime-database ] ; then
DEBUG 1 "Running $x/update-mime-database $1"
eval '$x/update-mime-database $1'$xdg_redirect_output
return
fi
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.
Comments