-
-
Notifications
You must be signed in to change notification settings - Fork 14.1k
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
wire-desktop: fix a segfault when changing profile picture #74472
Conversation
pkgs/applications/networking/instant-messengers/wire-desktop/default.nix
Show resolved
Hide resolved
postFixup = '' | ||
makeWrapper $out/opt/Wire/wire-desktop $out/bin/wire-desktop \ | ||
"''${gappsWrapperArgs[@]}" \ | ||
--set FONTCONFIG_FILE "${fontconfig.out}/etc/fonts/fonts.conf" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the error there is a harmless one, fontconfig in nixos will just use a different conf.
This will also force it to not use the font conf of the system.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems to have fixed itself
pkgs/applications/networking/instant-messengers/wire-desktop/default.nix
Outdated
Show resolved
Hide resolved
pkgs/applications/networking/instant-messengers/wire-desktop/default.nix
Outdated
Show resolved
Hide resolved
pkgs/applications/networking/instant-messengers/wire-desktop/default.nix
Outdated
Show resolved
Hide resolved
63748b5
to
72a26a3
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we should do https://github.com/NixOS/nixpkgs/pull/74472/files#r351812282, and then I think it's good.
72a26a3
to
43b3ba6
Compare
pkgs/applications/networking/instant-messengers/wire-desktop/default.nix
Outdated
Show resolved
Hide resolved
(wire-desktop:11531): GLib-GIO-ERROR **: 06:04:45.248: No GSettings schemas are installed on the system and fix Fontconfig warning: "/etc/fonts/fonts.conf", line 86: unknown element "blank" and tidied up the linux build greatly and added kiwi as a maintainer
43b3ba6
to
5a465b0
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks a lot.
}; | ||
|
||
darwin = stdenv.mkDerivation { | ||
inherit pname version meta; | ||
|
||
src = fetchurl { | ||
url = "https://github.com/wireapp/wire-desktop/releases/download/" | ||
+ "macos%2F${version}/Wire.pkg"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What's the reasoning behind this unindent? It makes for much more confusing formatting imo.
in if stdenv.isDarwin | ||
then darwin | ||
else linux | ||
in |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is another questionable formatting change. It's less clear that the conditional expression is in the body of the let in
. What's the motivation for this?
I personally don't like the non-indented then/else
clauses, this is not a statement but an expression, the extra indentation makes it much clearer the clauses are part of an expression.
(wire-desktop:11531): GLib-GIO-ERROR **: 06:04:45.248: No GSettings schemas are installed on the system
and fix Fontconfig warning: "/etc/fonts/fonts.conf", line 86: unknown element "blank"
and tidied up the linux build greatly
and added kiwi as a maintainer
Motivation for this change
@worldofpeace made me try wire-desktop and it crashed when I tried to change my profile picture. So I thought I'd be nice and fix their package for once since they always help me with mine. :P
Things done
A while back @worldofpeace helped me package Simplenote and after my first miserable attempt they pointed me at wire-desktop for a better reference than the one I used. While trying to get their way to work we learned of an even easier/cleaner way to do these electron apps. It just so happens that switching to that method fixed the segfault. ;)
sandbox
innix.conf
on non-NixOS linux)nix-shell -p nix-review --run "nix-review wip"
./result/bin/
)nix path-info -S
before and after)Notify maintainers
cc @worldofpeace