3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/office/libreoffice
Bjørn Forsman 64661f0597 libreoffice: fix Exec= in .desktop files
Before we do substitutions, the Exec= line is (currently)
"Exec=libreofficedev4.3 --some-arg". Our substitution logic doesn't handle
that, resulting in broken "Exec=$out/bin/sofficedev4.3 --some-arg"
($out/bin/sofficedev4.3 doesn't exist).

Looking at libreoffice source, the .desktop files refer to a UNIXBASISROOTNAME
variable which come from instsetoo_native/util/openoffice.lst.in. Currently, it
can have one of two values, presumably depending on whether the build is
"normal" or "development":

  libreoffice${major}.${minor}

  libreofficedev${major}.${minor}

Handle both these cases, and also leave the old non-versioned substitution
around, just in case.

Fixes issue #3463.
2014-12-14 18:05:24 +01:00
..
default.nix libreoffice: fix Exec= in .desktop files 2014-12-14 18:05:24 +01:00
generate-libreoffice-srcs.sh Libreoffice update: not succesful yet 2014-06-27 16:37:34 +04:00
libreoffice-srcs.nix Update LibreOffice 2014-11-04 00:37:43 +03:00