FS#55312 - [plasma-workspace] Installing to /usr causes startkde to have duplicate entries in XDG_DATA_DIRS

Attached to Project: Arch Linux
Opened by Asgeir Bjarni Ingvarsson (asgeirbj) - Sunday, 27 August 2017, 15:07 GMT
Last edited by Antonio Rojas (arojas) - Thursday, 31 August 2017, 14:37 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Laurent Carlier (lordheavy)
Antonio Rojas (arojas)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

The install script that generates the startkde script doesn't handle the fact that the install prefix may be /usr

XDG_DATA_DIRS="@CMAKE_INSTALL_PREFIX@/@SHARE_INSTALL_PREFIX@:/usr/share:/usr/local/share"

becomes

XDG_DATA_DIRS="/usr/share:/usr/share:/usr/local/share"

Which can cause interesting side-effects like the vulkan-icd-loader double-counting the installed GPUs.


Affects:
plasma-workspace - 5.10.5-2

potentially anything that uses XDG_DATA_DIRS without filtering out duplicates
This task depends upon

Closed by  Antonio Rojas (arojas)
Thursday, 31 August 2017, 14:37 GMT
Reason for closing:  Upstream
Comment by Doug Newgard (Scimmia) - Thursday, 31 August 2017, 14:25 GMT
This sounds more like a problem with how vulkan-icd-loader handles it.
Comment by Antonio Rojas (arojas) - Thursday, 31 August 2017, 14:37 GMT
Right, if something can't handle duplicates in XDG_DATA_DIRS, it should be fixed. In any case, startkde comes from upstream, so please report this to bugs.kde.org

Loading...