[gnome-chess] Rename engines.conf to chess-engines.conf
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-chess] Rename engines.conf to chess-engines.conf
- Date: Wed, 14 Aug 2013 13:19:51 +0000 (UTC)
commit ed632cba3f07b72eb6e608171ee121641e863f94
Author: Michael Catanzaro <mcatanzaro gnome org>
Date: Wed Aug 14 08:18:34 2013 -0500
Rename engines.conf to chess-engines.conf
This is sensible now that the file is installed directly in /etc; it
otherwise would not be clear from the filename what its purpose is.
data/Makefile.am | 2 +-
data/{engines.conf => chess-engines.conf} | 2 ++
src/gnome-chess.vala | 2 +-
3 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/data/Makefile.am b/data/Makefile.am
index 1a7a581..d8715e0 100644
--- a/data/Makefile.am
+++ b/data/Makefile.am
@@ -16,7 +16,7 @@ gsettings_SCHEMAS = org.gnome.gnome-chess.gschema.xml
@INTLTOOL_XML_NOMERGE_RULE@
@GSETTINGS_RULES@
-dist_sysconf_DATA = engines.conf
+dist_sysconf_DATA = chess-engines.conf
dist_man_MANS = gnome-chess.6
diff --git a/data/engines.conf b/data/chess-engines.conf
similarity index 98%
rename from data/engines.conf
rename to data/chess-engines.conf
index 67bc46a..4acfe96 100644
--- a/data/engines.conf
+++ b/data/chess-engines.conf
@@ -1,3 +1,5 @@
+# GNOME Chess will detect any engines listed here
+
[Amundsen]
protocol=cecp
binary=amundsen
diff --git a/src/gnome-chess.vala b/src/gnome-chess.vala
index 82eefb2..3c7300e 100644
--- a/src/gnome-chess.vala
+++ b/src/gnome-chess.vala
@@ -196,7 +196,7 @@ public class Application : Gtk.Application
settings.changed.connect (settings_changed_cb);
settings_changed_cb (settings, "show-3d");
- ai_profiles = AIProfile.load_ai_profiles (Path.build_filename (SYSCONFDIR, "engines.conf", null));
+ ai_profiles = AIProfile.load_ai_profiles (Path.build_filename (SYSCONFDIR, "chess-engines.conf",
null));
foreach (var profile in ai_profiles)
message ("Detected AI profile %s in %s", profile.name, profile.path);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]