The write permissions are indeed cleared afterwards, but during the build/installation phase the desktop files are already read-only and I have to modify them. Without this line I'll get a "permission denied" error during the build phase.
-----Oorspronkelijk bericht----- Van: Michael Raskin [mailto:[email protected]] Verzonden: vr 16-10-2009 20:58 Aan: [email protected]; Sander van der Burg - EWI CC: [email protected] Onderwerp: Re: [Nix-commits] SVN commit: nix - 17853 - sandervanderburg - nixpkgs/trunk/pkgs/applications/office/openoffice -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Sander van der Burg wrote: > It appears that the OpenOffice.org desktop files are read only. Changing this > so that they can be adapted > for appl in $out/share/applications/*.desktop > do > + chmod 644 $appl # What's wrong with the file permissions? > sed -i '/Icon/d' $appl > echo "Icon=`echo $appl | sed 's/.desktop//'`" >> $appl > done You are trying to install writable files in /nix/store? Is it a good idea? Doesn't Nix chmod everything to "a-w a+rX" anyway? -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.12 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iQEcBAEBAgAGBQJK2MJDAAoJEE6tnN0aWvw3PNgH/37uM7JtUnyWfsWXTqLr2Ez9 0ChdfyTnwBz3J8ximEbj6NmpqWJ4vAkGi0VK5WhkMRiEp7W0vARjLahvw2rxSzV2 JCVcMkFyybeM4ARGqtPoJa+d9whdXALNqzg/d6eBKDL/I3It24QOHn12mC2LuJe2 6PyXyj221lIQB1TILFdS9dA/kVkb2siScbTQsD1a5E/NE3nJ1jmwgcfVeQL3ZPLM H8zob8nE1+yt5zu/T68+vQN+NanyEuNnVbNUyH8M26Li11/K014+ax1RCUfVBapE 8ZZdg/NalbV0W0GHx+ZnEizVhivbByRik6dwNaAhbEr+TO0TuEJUHXRVc0/2OCc= =CwWX -----END PGP SIGNATURE-----
_______________________________________________ nix-dev mailing list [email protected] https://mail.cs.uu.nl/mailman/listinfo/nix-dev
