fix brave wrapping on desktop file
This commit is contained in:
parent
8f9599cf15
commit
1b01b18c1a
1 changed files with 6 additions and 2 deletions
|
|
@ -125,9 +125,13 @@
|
||||||
pkgs.brave
|
pkgs.brave
|
||||||
];
|
];
|
||||||
postBuild = ''
|
postBuild = ''
|
||||||
|
desktop="$out/share/applications/brave-browser.desktop"
|
||||||
|
if [ -L "$desktop" ]; then
|
||||||
|
cp --remove-destination "$(readlink "$desktop")" "$desktop"
|
||||||
|
fi
|
||||||
sed -i \
|
sed -i \
|
||||||
"s|Exec=brave-browser|Exec=$out/bin/brave|g" \
|
"s|^Exec=.*|Exec=$out/bin/brave %U|g" \
|
||||||
$out/share/applications/brave-browser.desktop 2>/dev/null || true
|
"$desktop"
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue