Skip to content

kdeWrapper: Fix XDG_DATA_DIRS/XDG_CONFIG_DIRS mixup. - #21918

Merged
abbradar merged 1 commit into
NixOS:masterfrom
solson:kdewrapper-xdg-config-data-mixup
Jan 16, 2017
Merged

abbradar merged 1 commit into
NixOS:masterfrom
solson:kdewrapper-xdg-config-data-mixup

Conversation

@solson

@solson solson commented Jan 16, 2017 •

Copy link
Copy Markdown
Member

share directories go with XDG_DATA_DIRS, and etc/xdg directories go with XDG_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 by straceing Spectacle, I noticed that it was looking in the kdeWrapper "env" package for etc/xdg/kservices5 but I knew the real path was share/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
  • Tested using sandboxing
    (nix.useSandbox on NixOS,
    or option build-use-sandbox in nix.conf
    on non-NixOS)
  • Built on platform(s)
    • NixOS
    • macOS
    • Linux
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Fits CONTRIBUTING.md.

`.../share` directories go with `XDG_DATA_DIRS`, and `.../etc/xdg`
directories go with `XDG_CONFIG_DIRS`. These were accidentally reversed.

See https://userbase.kde.org/KDE_System_Administration/Environment_Variables#freedesktop.org_Compliance
@mention-bot

Copy link
Copy Markdown

@solson, thanks for your PR! By analyzing the history of the files in this pull request, we identified @abbradar and @ttuegel to be potential reviewers.

@abbradar
abbradar merged commit 0abf358 into NixOS:master Jan 16, 2017
@solson
solson deleted the kdewrapper-xdg-config-data-mixup branch January 16, 2017 21:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants