Re: [Evolution-hackers] Automatically start services from install path
Hello Martin, thanks for quick response. On Sun, 2018-12-16 at 13:09 +0100, Milan Crha via evolution-hackers wrote: > On Thu, 2018-12-13 at 02:47 +0100, Marek Howard via evolution-hackers > wrote: > > Is there any way to build evolution to make it automatically start > > the required services from correct installed path on startup, just like the > > system installed Evolution does? > > Hi, > it's not about Evolution build, it's about setting D-Bus to search for > the built services, not for system services. The text in the referenced > wiki page didn't want to come into too much detail in this regard, > there are better articles how to setup D-Bus with it. The .service > files are installed into $PREFIX/share/dbus-1/services/, which is the > path you want to tell D-Bus to look for the services first. That D-Bus > doesn't know about these .service files is the reason why it starts > system-installed services when you run built Evolution. There can be > some differences when also systemd files are involved, but I'm not sure > what to do with it off head, I'd search the same as you might search > the web, if you (or the system-installed evolution-data-server) use > systemd. Got it. It won't be so easy though. I'm not going to go off-topic on this list, just FYI: Apparently XDG_DATA_DIRS is used as search path for dbus services[1]. Turns out I've set it correctly but not in correct place. It needs to be set somewhere where user systemd instance started by login manager picks it up, because it seems it also starts the session dbus. I've put it in ~/.config/environment.d/local.conf. Now "systemctl --user show- environment" shows it is set (though now my shell doesn't see it). However, after I run Evolution, system installed Evolution services are still picked over the local ones. I even rebooted system to make sure everything is properly restarted. I think I'll go with system packaged Evolution for now and troubleshoot it again when I have time to study and hack Evolution source again. Thank you! [1] https://lists.freedesktop.org/archives/dbus/2008-August/010283.html ___ evolution-hackers mailing list evolution-hackers@gnome.org To change your list options or unsubscribe, visit ... https://mail.gnome.org/mailman/listinfo/evolution-hackers
Re: [Evolution-hackers] Automatically start services from install path
On Thu, 2018-12-13 at 02:47 +0100, Marek Howard via evolution-hackers wrote: > Is there any way to build evolution to make it automatically start > the required services from correct installed path on startup, just like the > system installed Evolution does? Hi, it's not about Evolution build, it's about setting D-Bus to search for the built services, not for system services. The text in the referenced wiki page didn't want to come into too much detail in this regard, there are better articles how to setup D-Bus with it. The .service files are installed into $PREFIX/share/dbus-1/services/, which is the path you want to tell D-Bus to look for the services first. That D-Bus doesn't know about these .service files is the reason why it starts system-installed services when you run built Evolution. There can be some differences when also systemd files are involved, but I'm not sure what to do with it off head, I'd search the same as you might search the web, if you (or the system-installed evolution-data-server) use systemd. Bye, Milan ___ evolution-hackers mailing list evolution-hackers@gnome.org To change your list options or unsubscribe, visit ... https://mail.gnome.org/mailman/listinfo/evolution-hackers
[Evolution-hackers] Automatically start services from install path
Hello, I'm running Evolution from source. The wiki page about building[1] suggests to run compiled evolution like this: $ source $HOME/sources/build $ $PREFIX/libexec/evolution-source-registry & $ sleep 1 $ $PREFIX/libexec/evolution-calendar-factory -r & $ sleep 1 $ $PREFIX/libexec/evolution-addressbook-factory -r & $ sleep 1 $ $PREFIX/bin/evolution The relevant variables for running evolution defined in build environment file I have defined in shell startup file, so my script for running evolution currently does what follows after the source line. Is there any way to build evolution to make it automatically start the required services from correct installed path on startup, just like the system installed Evolution does? When I just invoke 'evolution' from ~/local/bin/evolution, it starts up system installed Evolution services from /usr/lib instead those that are installed in default* prefix subdirectory ~/local/libexec. I keep Evolution distribution package installed just in case the development version breaks. * I pass -DCMAKE_INSTALL_PREFIX=$HOME/local to all source modules, i.e. evolution, evolution-data-server and evolution-ews. Thank you! [1] https://wiki.gnome.org/Apps/Evolution/Building ___ evolution-hackers mailing list evolution-hackers@gnome.org To change your list options or unsubscribe, visit ... https://mail.gnome.org/mailman/listinfo/evolution-hackers