Re: [Evolution-hackers] Wrong factories starting after alternative installs?
On Mon, 2010-11-29 at 17:55 -0500, Paul Smith wrote: > That's exactly where I got my version originally. I did, just to be > sure, try copying that verbatim into session.local.conf then logging > out and back in, but it didn't help. OK, I read some man pages about dbus-daemon and I did some experimentation with strace -p attached to my session daemon. I discovered that if you run kill -HUP your session daemon, it WILL reread your config files. Yay! Easier than logging out/back in. When I do that and look at what files are opened containing "AddressBook" I see that first it opens the system service file and read that: open("/usr/share/dbus-1/services/org.gnome.evolution.dataserver.AddressBook.service", O_RDONLY) = 84 then afterwards it opens my alternate service file and reads that: open("/opt/evo-2.32/share/dbus-1/services/org.gnome.evolution.dataserver.AddressBook.service", O_RDONLY) = 84 Then it ends up using the path it found in the FIRST file. According to the dbus-daemon man page it's SUPPOSED to work like this: Adds a directory to scan for .service files. Directories are scanned starting with the last to appear in the config file (the first .service file found that provides a particular service will be used). OK. So, it's definitely using the first .service file, as the parenthetical statement says. However, when I examine the contents of /etc/dbus-1/session.conf I cannot figure out how it can possibly be looking at /usr/share/dbus-1 first, since it says "directories are scanned starting with the last to appear in the config file"... as far as I can see my stuff comes last. However, if I rename the system .service file to something else, then my alternate service DOES get chosen and run and everything works, so I'm sure that it's not some syntax error in my part but rather some kind of ordering issue that I don't understand. Sigh. Everyone is happy to add all kinds of funky new features, and their added complexity, but no one ever thinks about maintainability/debug-ability... until it's too late. ___ evolution-hackers mailing list evolution-hackers@gnome.org To change your list options or unsubscribe, visit ... http://mail.gnome.org/mailman/listinfo/evolution-hackers
Re: [Evolution-hackers] Wrong factories starting after alternative installs?
On Mon, 2010-11-29 at 14:51 -0600, Matthew Barnes wrote: > The config file looks right to me. I gave a similar example awhile > back which you might try copying verbatim: > > http://mail.gnome.org/archives/evolution-hackers/2010-March/msg00023.html That's exactly where I got my version originally. I did, just to be sure, try copying that verbatim into session.local.conf then logging out and back in, but it didn't help. I even renamed the "default" factories that were being started, and now I get an error when I try to access my contacts list: Detailed error message: Error calling StartServiceByName for org.gnome.evolution.dataserver.AddressBook: GDBus.Error:org.freedesktop.DBus.Error.Spawn.ExecFailed: Failed to execute program /usr/lib/evolution/e-addressbook-factory: Success That's to be expected I suppose but it clearly shows that dbus is not interested in my customized servicedir settings. How can I figure this out??!! ___ evolution-hackers mailing list evolution-hackers@gnome.org To change your list options or unsubscribe, visit ... http://mail.gnome.org/mailman/listinfo/evolution-hackers
Re: [Evolution-hackers] Wrong factories starting after alternative installs?
On Mon, 2010-11-29 at 15:32 -0500, Paul Smith wrote: > I already have added a /etc/dbus-1/session.d/evo-2.32.conf file > containing: > > /opt/evo-2.32/share/dbus-1/services/ > > which is what I had to do last time (and I've rebooted since this, by > the way, for other reasons). > > Is this still what I need for Evo 2.32, or is there something different? > Any way to debug why the other factory is being invoked instead of mine? The config file looks right to me. I gave a similar example awhile back which you might try copying verbatim: http://mail.gnome.org/archives/evolution-hackers/2010-March/msg00023.html Matthew Barnes ___ evolution-hackers mailing list evolution-hackers@gnome.org To change your list options or unsubscribe, visit ... http://mail.gnome.org/mailman/listinfo/evolution-hackers
[Evolution-hackers] Wrong factories starting after alternative installs?
Hi all; So, I've been using my makefile to build Evolution 2.32 (latest gnome-2-32 branch actually) on my Ubuntu 10.10 (Maverick) system and it's basically working. However, when I start Evolution it's invoking the wrong factory apps. To start with I run "evolution --force-shutdown" and verify that no Evolution processes are running at all. Then I start Evolution. Now when I look for Evolution processes I see the right Evolution front-end: psmith 18271 17539 1 15:20 ?00:00:04 /opt/evo-2.32/bin/evolution But I see this incorrect (old) psmith 26043 1 0 15:21 ?00:00:00 /usr/lib/evolution/e-addressbook-factory I did already create a file So my question is, where/how does Evolution get this factory invoked? I already have added a /etc/dbus-1/session.d/evo-2.32.conf file containing: /opt/evo-2.32/share/dbus-1/services/ which is what I had to do last time (and I've rebooted since this, by the way, for other reasons). Is this still what I need for Evo 2.32, or is there something different? Any way to debug why the other factory is being invoked instead of mine? ___ evolution-hackers mailing list evolution-hackers@gnome.org To change your list options or unsubscribe, visit ... http://mail.gnome.org/mailman/listinfo/evolution-hackers