forked from mirrors/nixpkgs
patch gnome-session path in desktop file
This commit is contained in:
parent
56d24b8e1d
commit
a1a364102a
|
@ -13,6 +13,11 @@ stdenv.mkDerivation rec {
|
|||
|
||||
# FIXME: glib binaries shouldn't be in .dev!
|
||||
preFixup = ''
|
||||
for desktopFile in $(grep -rl "Exec=gnome-session" $out/share)
|
||||
do
|
||||
echo "Patching gnome-session path in: $desktopFile"
|
||||
sed -i "s,^Exec=gnome-session,Exec=$out/bin/gnome-session," $desktopFile
|
||||
done
|
||||
wrapProgram "$out/bin/gnome-session" \
|
||||
--prefix PATH : "${glib.dev}/bin" \
|
||||
--prefix GI_TYPELIB_PATH : "$GI_TYPELIB_PATH" \
|
||||
|
|
Loading…
Reference in a new issue