828d2b7aca
This is an automated DistroBaker update from upstream sources. If you do not know what this is about or would like to opt out, contact the OSCI team. Source: https://src.fedoraproject.org/rpms/evolution.git#2dbea5a9cc2ac8390e94c5e65b69c0aa5669e8dd
31 lines
1.3 KiB
Bash
31 lines
1.3 KiB
Bash
#!/bin/bash
|
|
|
|
if [ "$1" = "--quit" -o "$1" = "--force-shutdown" ]; then
|
|
/app/bin/evolution.bin "$@"
|
|
else
|
|
export BOGOFILTER_DIR="${XDG_DATA_HOME}/bogofilter/"
|
|
export GIO_USE_NETWORK_MONITOR=base
|
|
export WEBKIT_FORCE_SANDBOX=0
|
|
gsettings reset org.gnome.evolution-data-server network-monitor-gio-name
|
|
|
|
LINES=$(gdbus call --session --dest org.freedesktop.DBus --object-path /org/freedesktop/DBus --method org.freedesktop.DBus.ListNames | grep @SOURCES_SERVICE@ | wc -l)
|
|
if [ "${LINES}" = "0" ]; then
|
|
/app/libexec/evolution-source-registry &
|
|
gdbus wait --session --timeout=1@TIMEOUTMULT@ @SOURCES_SERVICE@
|
|
fi
|
|
|
|
LINES=$(gdbus call --session --dest org.freedesktop.DBus --object-path /org/freedesktop/DBus --method org.freedesktop.DBus.ListNames | grep @ADDRESSBOOK_SERVICE@ | wc -l)
|
|
if [ "${LINES}" = "0" ]; then
|
|
/app/libexec/evolution-addressbook-factory -r &
|
|
gdbus wait --session --timeout=1@TIMEOUTMULT@ @ADDRESSBOOK_SERVICE@
|
|
fi
|
|
|
|
LINES=$(gdbus call --session --dest org.freedesktop.DBus --object-path /org/freedesktop/DBus --method org.freedesktop.DBus.ListNames | grep @CALENDAR_SERVICE@ | wc -l)
|
|
if [ "${LINES}" = "0" ]; then
|
|
/app/libexec/evolution-calendar-factory -r &
|
|
gdbus wait --session --timeout=1@TIMEOUTMULT@ @CALENDAR_SERVICE@
|
|
fi
|
|
|
|
/app/bin/evolution.bin "$@"
|
|
fi
|