{"id":24,"date":"2005-04-14T22:20:33","date_gmt":"2005-04-14T22:20:33","guid":{"rendered":"http:\/\/www.reactivated.net\/weblog\/archives\/2005\/04\/beagle-configuration-system-preview\/"},"modified":"2005-04-14T22:21:51","modified_gmt":"2005-04-14T22:21:51","slug":"beagle-configuration-system-preview","status":"publish","type":"post","link":"http:\/\/www.reactivated.net\/weblog\/archives\/2005\/04\/beagle-configuration-system-preview\/","title":{"rendered":"Beagle configuration system &#8220;preview&#8221;"},"content":{"rendered":"<p>Finished the basic implementation of the configuration system. As previously mentioned, this is based on GConf.<\/p>\n<p>It&#8217;s far from complete: you have to choose your settings before beagled is running, or restart beagled after changing the configuration for the new settings to take effect. You can&#8217;t do much in the way of configuration right now, but you can add more filesystem roots to be indexed.<\/p>\n<p>It includes a new command line tool, <strong>beagle-config<\/strong>. For a demo, read the full post.<\/p>\n<p>I&#8217;ve posted it to <a href=\"http:\/\/bugzilla.gnome.org\/show_bug.cgi?id=172283\">bug 172283<\/a> (direct patch link <a href=\"http:\/\/bugzilla.gnome.org\/attachment.cgi?id=45271&#038;action=view\">here<\/a>). There&#8217;s some implementation details included at the top of the patch.<\/p>\n<p>Read on for an example of beagle-config&#8230; It&#8217;s quite fancy as the configuration app itself is quite simple (and will be simplified further) &#8211; it pulls everything (the list of configuration &#8220;sections&#8221;, the operations you can perform, their descriptions, the invokation output) from <em>Beagle.Util.Conf<\/em>.<\/p>\n<p><!--more--><\/p>\n<blockquote><p><code><br \/>\n# beagle-config<br \/>\nbeagle-config: Command-line interface to the Beagle config file.<br \/>\nWeb page: http:\/\/www.gnome.org\/projects\/beagle<br \/>\nCopyright (C) 2005 Novell, Inc.<\/p>\n<p>Usage: beagle-config [OPTIONS]<br \/>\n   or: beagle-config <\/p>\n<section>\n   or: beagle-config <\/section>\n<section> <sectionoption> [PARAMS]<\/p>\n<p>Options:<br \/>\n  --beagled-reload-config       Ask the beagle daemon to reload<br \/>\n                                the configuration file.<br \/>\n  --list-sections               List all available configuration sections.<br \/>\n  --help                        Print this usage message.<\/p>\n<p>If a section is specified with no options, then a list of the available commands for that section is shown.<\/p>\n<p># beagle-config --list-sections<br \/>\nAvailable configuration sections:<br \/>\n - indexing<\/p>\n<p># beagle-config indexing<br \/>\nAvailable options for section 'indexing':<br \/>\n - ListIgnorePatterns (List filename patterns to be ignored)<br \/>\n - ListRoots (List the indexing roots)<br \/>\n - AddRoot (Add a root path to be indexed)<\/p>\n<p># beagle-config indexing ListRoots<br \/>\nCurrent roots:<br \/>\n - Your home directory<\/p>\n<p># beagle-config indexing AddRoot \/var\/tmp\/beagle<br \/>\nRoot added.<\/p>\n<p># beagle-config indexing ListRoots<br \/>\nCurrent roots:<br \/>\n - Your home directory<br \/>\n - \/var\/tmp\/beagle<br \/>\n<\/sectionoption><\/section>\n<p><\/code><\/p><\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>Finished the basic implementation of the configuration system. As previously mentioned, this is based on GConf. It&#8217;s far from complete: you have to choose your settings before beagled is running, or restart beagled after changing the configuration for the new settings to take effect. You can&#8217;t do much in the way of configuration right now, [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[],"class_list":["post-24","post","type-post","status-publish","format-standard","hentry","category-beagle"],"_links":{"self":[{"href":"http:\/\/www.reactivated.net\/weblog\/wp-json\/wp\/v2\/posts\/24","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.reactivated.net\/weblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.reactivated.net\/weblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.reactivated.net\/weblog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.reactivated.net\/weblog\/wp-json\/wp\/v2\/comments?post=24"}],"version-history":[{"count":0,"href":"http:\/\/www.reactivated.net\/weblog\/wp-json\/wp\/v2\/posts\/24\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.reactivated.net\/weblog\/wp-json\/wp\/v2\/media?parent=24"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.reactivated.net\/weblog\/wp-json\/wp\/v2\/categories?post=24"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.reactivated.net\/weblog\/wp-json\/wp\/v2\/tags?post=24"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}