Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

kdeWrapper: Fix XDG_DATA_DIRS/XDG_CONFIG_DIRS mixup. #21918

Merged
merged 1 commit into from Jan 16, 2017
Merged

kdeWrapper: Fix XDG_DATA_DIRS/XDG_CONFIG_DIRS mixup. #21918

merged 1 commit into from Jan 16, 2017

Conversation

solson
Copy link
Member

@solson solson commented Jan 16, 2017

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

@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.

None yet

3 participants