summaryrefslogtreecommitdiff
path: root/solenv/bin/assemble-flatpak.sh
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2019-02-13 10:15:31 +0100
committerStephan Bergmann <sbergman@redhat.com>2019-02-13 15:13:36 +0100
commite31c2c03f9ff06df553e577a1d9149ce75e7ff7f (patch)
tree9cebb6c51aa214d0466dd653066303271604d698 /solenv/bin/assemble-flatpak.sh
parent0ac4425e1c0c6b5c55933307929fc8d37a927b2c (diff)
Move desktop-file-edit calls to assemble-flatpak.sh
(and fix one comment) Change-Id: I1e2e72427b6021194b2010535e01b9ca69e4a029 Reviewed-on: https://gerrit.libreoffice.org/67760 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'solenv/bin/assemble-flatpak.sh')
-rwxr-xr-xsolenv/bin/assemble-flatpak.sh13
1 files changed, 12 insertions, 1 deletions
diff --git a/solenv/bin/assemble-flatpak.sh b/solenv/bin/assemble-flatpak.sh
index 67ad285fcf98..6c0734178662 100755
--- a/solenv/bin/assemble-flatpak.sh
+++ b/solenv/bin/assemble-flatpak.sh
@@ -15,7 +15,7 @@ set -e
cp -r "${PREFIXDIR?}"/lib/libreoffice /app/
-## libreoffice-*.desktop -> org.libreoffice.LibreOffice-*.desktop:
+## libreoffice-*.desktop -> org.libreoffice.LibreOffice.*.desktop:
mkdir -p /app/share/applications
for i in "${PREFIXDIR?}"/share/applications/libreoffice-*.desktop
do
@@ -30,6 +30,17 @@ mv /app/share/applications/org.libreoffice.LibreOffice.startcenter.desktop \
# the order of XDG_DATA_DIRS - re-associating text/plain seems a bit much
sed -i "s/text\/plain;//" /app/share/applications/org.libreoffice.LibreOffice.writer.desktop
+desktop-file-edit --set-key=X-Endless-Alias --set-value=libreoffice-startcenter \
+ --set-key=X-Flatpak-RenamedFrom --set-value='libreoffice-startcenter.desktop;' \
+ /app/share/applications/org.libreoffice.LibreOffice.desktop
+for i in base calc draw impress math writer xsltfilter
+do
+ desktop-file-edit --set-key=X-Endless-Alias --set-value=libreoffice-"$i" \
+ --set-key=X-Flatpak-RenamedFrom \
+ --set-value="libreoffice-$i.desktop;org.libreoffice.LibreOffice-$i.desktop;" \
+ /app/share/applications/org.libreoffice.LibreOffice."$i".desktop
+done
+
## icons/hicolor/*/apps/libreoffice-* ->
## icons/hicolor/*/apps/org.libreoffice.LibreOffice-*:
mkdir -p /app/share/icons