kdeWrapper: Fix XDG_DATA_DIRS/XDG_CONFIG_DIRS mixup. #21918
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
share
directories go withXDG_DATA_DIRS
, andetc/xdg
directories go withXDG_CONFIG_DIRS
. These were accidentally reversed.See this KDE wiki page for example.
Motivation for this change
This solves my problem with Spectacle not having any items in the
Export Image... > More Online Services
menu, such as the Imgur uploader. I had previously mentioned this here but I don't think there's a dedicated issue.I figured out that the plugin loader relied on a
kservices5
directory and bystrace
ing Spectacle, I noticed that it was looking in thekdeWrapper
"env" package foretc/xdg/kservices5
but I knew the real path wasshare/kservices5
, and then the accidental reversal became clear.Since the problem was actually in
kdeWrapper
, this has a good chance of fixing issues in other KDE5 packages that I'm not aware of.Things done
(nix.useSandbox on NixOS,
or option
build-use-sandbox
innix.conf
on non-NixOS)
nix-shell -p nox --run "nox-review wip"
./result/bin/
)