DBUS_SERVICES_PREFIX should be configurable in config files
We're switching the way Flatpaks are built in Fedora so that a single build of evolution-data-server will be used in all Flatpaks. The current way DBUS_SERVICES_PREFIX is compiled into the EDS binaries makes this difficult to handle.
What would be better if the D-Bus service files were generated as something like:
BusName=org.example.MyApp.org.gnome.evolution.dataserver.AddressBook10
ExecStart=/usr/libexec/evolution-addressbook-factory --dbus-services-prefix=org.example.MyApp
Then at Flatpak container creation time, a script could rename and substitute the config files as appropriate for the app being built.
See https://src.fedoraproject.org/rpms/tracker-miners/c/664a298a51e0ce435323aa3065c4325d47cb0685?branch=rawhide https://src.fedoraproject.org/flatpaks/gnome-music/c/7eb118437a4d1bcb72458fa8520eb20926d451a5?branch=stable
For an example of how something similar is being done for tracker-miners