3
0
Fork 0
forked from mirrors/nixpkgs

patch gnome-session path in desktop file

This commit is contained in:
Alexander Ried 2016-10-03 00:09:28 +02:00
parent 56d24b8e1d
commit a1a364102a

View file

@ -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" \