GNOME Bugzilla – Bug 338370
Autostart .desktop files should be used to start beagled and beagle-search
Last modified: 2006-12-04 19:54:41 UTC
Please describe the problem: beagled doesn't start automatically after login. "Start search & indexing services automatically" is checked. Steps to reproduce: 1. 2. 3. Actual results: Expected results: Does this happen every time? Other information: This is on Mandriva Cooker i586 with GNOME 2.14.
Traditionally this is integration that needs to be done by your distro. In the short term if you want this, I'd suggest filing a bug against Mandriva. There is already an autostart mechanism for KDE, and with 2.14 we can do it with GNOME as well. What we need to do is drop special autostart .desktop files in the special directories when that setting is toggled.
We already have a bug filed on MDV - http://qa.mandriva.com/show_bug.cgi?id=21985 . Goetz is the Beagle packager for MDV. If we need to do something to make this option work in our distro, could this perhaps be explained more obviously in the Beagle documentation? I don't remember this being mentioned. What does toggling the box actually *do*, and how would you recommend we use this to truly start the daemon? Thanks. (I'm not posting in any official capacity, I'm not a developer, just a GNOME user butting in. :>)
Toggling the box tells beagled and beagle-search whether to keep running or exit immediately when run with the --autostarted switch. Yeah, it's a hack, but it was to work around the fact that GNOME didn't have an autostart mechanism until 2.14. Going forward, it's probably something we can switch to. So what you might want to do (we're doing this in SUSE for now) is to drop an autostart desktop file in which runs these two programs with the --autostarted flag.
Thanks, Joe, we've now fixed this 'downstream' :)
What we need now is a system-wide configuration file. I'd like to automatically set the autostart option and I'd like to set some sane defaults (don't index the temp dir, add the static indexes from beagle-crawl-system).
Hi, I also use the autostart .desktop approach in Ubuntu to start beagled for each user's session. gnome-session-properties gives users a mechanism to enable and disable beagled, and other autostart apps. I think ideally beagled should ship autostart files for Gnome and KDE and drop the "Start search & indexing services automatically checkbox" (or tie it into the autostart spec). I will attach my autostart files here.
Created attachment 64558 [details] autostart .desktop for kde
Created attachment 64559 [details] autostart .desktop for gnome
Gnome .desktop : $sysconfdir/xdg/autostart KDE .desktop : $prefix/share/autostart
*** Bug 341709 has been marked as a duplicate of this bug. ***
I just checked in code to autostart in GNOME. My understanding is that KDE4 will adopt the XDG autostart spec, so we only have support for that (for now).