summaryrefslogtreecommitdiff
path: root/flatpak-evolution-fix-service-names.sh
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2024-08-05 01:55:11 +0000
committerCoprDistGit <infra@openeuler.org>2024-08-05 01:55:11 +0000
commita03db13f6d53974b77e951059d247a921c636d07 (patch)
tree1fc1fc92817e209a7da03d7ce4fdeda2121469f1 /flatpak-evolution-fix-service-names.sh
parentb695edb89e0ebfb1f80a6dff4634edd504aea6af (diff)
automatic import of evolutionopeneuler24.03_LTS
Diffstat (limited to 'flatpak-evolution-fix-service-names.sh')
-rwxr-xr-xflatpak-evolution-fix-service-names.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/flatpak-evolution-fix-service-names.sh b/flatpak-evolution-fix-service-names.sh
new file mode 100755
index 0000000..9454543
--- /dev/null
+++ b/flatpak-evolution-fix-service-names.sh
@@ -0,0 +1,10 @@
+#!/bin/bash
+
+# see https://gitlab.gnome.org/GNOME/glib/issues/1737
+# previous versions used milliseconds instead of seconds as the timeout argument",
+(`pkg-config --atleast-version 2.60.1 gio-2.0` || `pkg-config --atleast-version 2.61.0 gio-2.0`) && TIMEOUTMULT= || TIMEOUTMULT=000
+
+sed -e "s|\@SOURCES_SERVICE\@|$(pkg-config --variable=sourcesdbusservicename evolution-data-server-1.2)|" \
+ -e "s|\@ADDRESSBOOK_SERVICE\@|$(pkg-config --variable=addressbookdbusservicename evolution-data-server-1.2)|" \
+ -e "s|\@CALENDAR_SERVICE\@|$(pkg-config --variable=calendardbusservicename evolution-data-server-1.2)|" \
+ -e "s|\@TIMEOUTMULT\@|${TIMEOUTMULT}|"