[Libreoffice-commits] core.git: solenv/bin solenv/flatpak-manifest.in

Stephan Bergmann (via logerrit) logerrit at kemper.freedesktop.org
Fri Apr 24 08:24:57 UTC 2020


 solenv/bin/assemble-flatpak.sh |    4 ++--
 solenv/flatpak-manifest.in     |    2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

New commits:
commit acca5c87e73255db350a02d13bf34a62efaf9c93
Author:     Stephan Bergmann <sbergman at redhat.com>
AuthorDate: Tue Apr 21 14:07:24 2020 +0200
Commit:     Stephan Bergmann <sbergman at redhat.com>
CommitDate: Fri Apr 24 10:24:24 2020 +0200

    Flatpak: Add /app/bin/libreoffice -> /app/libreoffice/program/soffice symlink
    
    Which removes the need to rewrite the
    
      Exec=${UNIXBASISROOTNAME}
    
    lines from sysui/desktop/menus/*.desktop, and helps to harmonize the plain
    Flatpak build with the one done from Fedora RPMs (see
    <https://src.fedoraproject.org/flatpaks/libreoffice>).
    
    (Also change the manifest command from an absolute path to a filename relative
    to PATH.  It is not clear to me which one would be better or more conventional,
    but at least <https://docs.flatpak.org/en/latest/manifests.html> also uses just
    a filename in its example.)
    
    Change-Id: I69c380b84503bf3d85801093fb92567852ceb00b
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/92837
    Tested-by: Jenkins
    Reviewed-by: Stephan Bergmann <sbergman at redhat.com>

diff --git a/solenv/bin/assemble-flatpak.sh b/solenv/bin/assemble-flatpak.sh
index b4bce2d4d172..0738fcd59ad2 100755
--- a/solenv/bin/assemble-flatpak.sh
+++ b/solenv/bin/assemble-flatpak.sh
@@ -14,13 +14,13 @@
 set -e
 
 cp -r "${PREFIXDIR?}"/lib/libreoffice /app/
+ln -s /app/libreoffice/program/soffice /app/bin/libreoffice
 
 ## libreoffice-*.desktop -> org.libreoffice.LibreOffice.*.desktop:
 mkdir -p /app/share/applications
 for i in "${PREFIXDIR?}"/share/applications/libreoffice-*.desktop
 do
- sed -e 's,^Exec=libreoffice,Exec=/app/libreoffice/program/soffice,' \
-  -e 's/^Icon=libreoffice-/Icon=org.libreoffice.LibreOffice./' "$i" \
+ sed -e 's/^Icon=libreoffice-/Icon=org.libreoffice.LibreOffice./' "$i" \
   >/app/share/applications/org.libreoffice.LibreOffice."${i#"${PREFIXDIR?}"/share/applications/libreoffice-}"
 done
 mv /app/share/applications/org.libreoffice.LibreOffice.startcenter.desktop \
diff --git a/solenv/flatpak-manifest.in b/solenv/flatpak-manifest.in
index 9f64a142dd68..754b6b6dbbe1 100644
--- a/solenv/flatpak-manifest.in
+++ b/solenv/flatpak-manifest.in
@@ -6,7 +6,7 @@
     "sdk-extensions": [
         "org.freedesktop.Sdk.Extension.openjdk11"
     ],
-    "command": "/app/libreoffice/program/soffice",
+    "command": "libreoffice",
     "modules": [
         {
             "name": "openjdk",


More information about the Libreoffice-commits mailing list