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

fix: atom crash on Glib-GIO-ERROR #44067

Merged
merged 4 commits into from Aug 5, 2018
Merged

fix: atom crash on Glib-GIO-ERROR #44067

merged 4 commits into from Aug 5, 2018

Conversation

ysndr
Copy link
Member

@ysndr ysndr commented Jul 24, 2018

Motivation for this change

in the recent unstable releases of nixos atom used to crash when opening file open/save dialogs.
This might be related to a similar issue happening with sakura (#21698, #21700) which is also the inspiration for this fix

Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • 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/)
  • Determined the impact on package closure size (by running nix path-info -S before and after)
  • Fits CONTRIBUTING.md.

@@ -24,7 +24,9 @@ let
sed -i "s/${pname})/.${pname}-wrapped)/" $out/bin/${pname}
# sed -i "s/'${pname}'/'.${pname}-wrapped'/" $out/bin/${pname}
wrapProgram $out/bin/${pname} \
--prefix "PATH" : "${gvfs}/bin"
--prefix "PATH" : "${gvfs}/bin" \
--suffix "XDG_DATA_DIRS" : "${gtk3}/share/gsettings-schemas/${gtk3.name}/";
Copy link
Member

Choose a reason for hiding this comment

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

@jtojnar I guess wrapGAppsHook is more robust here?

Copy link
Contributor

Choose a reason for hiding this comment

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

Yep, now that electron uses gtk3, wrapGAppsHook would work. Although, the PATH would need to be added to gappsWrapperArgs.

Copy link
Member Author

Choose a reason for hiding this comment

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

alright, will use wrapGAppsHook then
about gappsWrapperArgs: what is supposed to be put in there? like --prefix "PATH" : "${gvfs}/bin"?

Copy link
Member

Choose a reason for hiding this comment

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

it takes the same arguments as wrapProgram.

@Mic92 Mic92 merged commit 57d5e2b into NixOS:master Aug 5, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants