Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 934941 - x11-misc/xdg-utils-1.2.1-r2: wrong name for qtpaths binary on gentoo
Summary: x11-misc/xdg-utils-1.2.1-r2: wrong name for qtpaths binary on gentoo
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal minor (vote)
Assignee: Freedesktop bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-06-25 23:32 UTC by Kris Scott
Modified: 2024-06-29 21:13 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kris Scott 2024-06-25 23:32:54 UTC
When using the "xdg-mime default" command, the script looks for the qtpaths binary if you're detected to be on KDE. On gentoo this file is named qtpaths5



Reproducible: Always

Steps to Reproduce:
Use xdg-mime to change default mimetypes

For example, I ran "xdg-mime default firefox-bin.desktop text/html"

Actual Results:  
Output: 

usr/bin/xdg-mime: line 902: qtpaths: command not found

Expected Results:  
the script should run without error.

I was in the air deciding if this should be a bug for qt-dev/qtpaths or for xdg-utils. I decided on xdg-utils because depending on how this is fixed, xdg-utils might need a dependency and USE flag added. 

The binary in question is called qtpaths at /usr/lib64/qt5/bin/qtpaths, but it's symlinked via qt5-build.eclass as /usr/bin/qtpaths5

dev-qt/qtpaths is not installed by the plasma desktop by default, so a dependency might need to be added, as it's not guaranteed to be available on all plasma systems.


This change was added in the following commit upstream, first appearing in the xdg-utils 1.2.1 release:

https://cgit.freedesktop.org/xdg/xdg-utils/commit/scripts/xdg-mime.in?h=v1.2.1&id=6f36849cc90f953a80bc4200073ab0c95937208e



Output of emerge --info:  https://paste.rs/WyRNZ
Comment 1 Kris Scott 2024-06-25 23:35:44 UTC
I just noticed I put the wrong package in the title. The package in question is 

x11-misc/xdg-utils-1.2.1-r2, not xdg-mime which does not exist.