-
-
Notifications
You must be signed in to change notification settings - Fork 15.5k
brave: fix file dialog crash #50450
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
brave: fix file dialog crash #50450
Conversation
This symlink is broken for me:
There is a brave binary in there
|
I'm not sure what you're referring to? That directory has a whole bunch more files ( the whole output
|
The only broken symlink I'm seeing is to
Btw, just realizing that So we might want to change that to |
Apparently the source archive has a This should stop that: diff --git a/pkgs/applications/networking/browsers/brave/default.nix b/pkgs/applications/networking/browsers/brave/default.nix
index 91670f9be09..55d52b33e4f 100644
--- a/pkgs/applications/networking/browsers/brave/default.nix
+++ b/pkgs/applications/networking/browsers/brave/default.nix
@@ -92,9 +92,9 @@ in stdenv.mkDerivation rec {
unpackPhase = "dpkg-deb --fsys-tarfile $src | tar -x --no-same-permissions --no-same-owner";
installPhase = ''
- mkdir -p $out
+ mkdir -p $out $out/bin
- cp -R usr/* $out
+ cp -R usr/share $out
cp -R opt/ $out/opt
export BINARYWRAPPER=$out/opt/brave.com/brave/brave-browser |
Fixes crashing when using file chooser GUI. Also added version to name and removed extraneous copying from source archive.
Applied your suggestions, many thanks. :) |
@hyperfekt I won't be able to reproduce this in my environment but you can confirm this fixes the issue? @GrahamcOfBorg build brave |
No attempt on aarch64-linux (full log) The following builds were skipped because they don't evaluate on aarch64-linux: brave Partial log (click to expand)
|
Success on x86_64-linux (full log) Attempted: brave Partial log (click to expand)
|
@worldofpeace Which one are you talking about? Both the rogue symlink and the crash on file selection are gone. |
I mean't the crash on file selection. This looks fine. cc @Mic92 |
@hyperfekt Thanks a lot ❇️ |
Motivation for this change
Fixes crashing when using file chooser GUI (adapted from
93050a3).
Things done
sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)nix path-info -S
before and after)