Skip to content

sgtpuzzles: fix broken gtk3 file dialog #25694

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

Merged
merged 2 commits into from
May 11, 2017

Conversation

olejorgenb
Copy link
Contributor

@olejorgenb olejorgenb commented May 11, 2017

Motivation for this change

Start any puzzle (eg. loopy) and try to save. The program crash with

GLib-GIO-ERROR **: No GSettings schemas are installed on the system
Things done

Wrap all binaries with XDG_DATA_DIRS prefixed to $GSETTINGS_SCHEMAS_PATH.

Note: I see that's there's quite some variety in how this issue has been fixed.

(Some suggest)[https://github.com//issues/23474#issuecomment-287562402] using wrapGAppsHook? (but that might increase the closure size for simple programs that only need file dialogs?)

Seems less than ideal to have to wrap (almost) every gtk program, at least if it requires writing a fixUp shell code snippet.

  • 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/) * Lot's of bin files, tested a few.
  • Fits CONTRIBUTING.md.

Sorry, something went wrong.

Verified

This commit was signed with the committer’s verified signature.
bagder Daniel Stenberg
XDG_DATA_DIRS need to be set for file dialog to work
@mention-bot
Copy link

@olejorgenb, thanks for your PR! By analyzing the history of the files in this pull request, we identified @7c6f434c and @pSub to be potential reviewers.

let
{ stdenv, fetchurl
, gtk3, libX11
, makeWrapper, pkgconfig, perl, autoreconfHook, wrapGAppsHook
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wrapGAppsHook is usually the better, more complete fix here.

@Mic92 Mic92 merged commit 6fef322 into NixOS:master May 11, 2017
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