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
vscode: use absolute predetermined path instead of heuristic #59766
Conversation
e8509a2
to
f9d9c61
Compare
Co-Authored-By: Synthetica9 <git@hilhorst.be>
Does this need a backport? |
Most changes to vscode should be backported |
@@ -108,6 +108,10 @@ in | |||
|
|||
mkdir -p $out/share/pixmaps | |||
cp $out/lib/vscode/resources/app/resources/linux/code.png $out/share/pixmaps/code.png | |||
|
|||
# Override the previously determined VSCODE_PATH with the one we know to be correct | |||
sed -i "/ELECTRON=/iVSCODE_PATH='$out/lib/vscode'" $out/bin/code |
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.
$out/bin/code
should be $out/bin/${executableName}
, same to the line below.
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.
See #59798.
Fixes #59725
Motivation for this change
#59725
Things done
sandbox
innix.conf
on non-NixOS)nix-shell -p nix-review --run "nix-review wip"
./result/bin/
)nix path-info -S
before and after)