tomboy r1928 - in trunk: . Tomboy
- From: sharm svn gnome org
- To: svn-commits-list gnome org
- Subject: tomboy r1928 - in trunk: . Tomboy
- Date: Mon, 3 Mar 2008 08:04:17 +0000 (GMT)
Author: sharm
Date: Mon Mar 3 08:04:17 2008
New Revision: 1928
URL: http://svn.gnome.org/viewvc/tomboy?rev=1928&view=rev
Log:
* Tomboy/AddinManager.cs: Always recreate
~/.tomboy/addins/Tomboy.addins when starting Tomboy. This supports
moving the Tomboy install from one prefix to another, or just
having parallel Tomboy installs. Should fix bug #514931.
Modified:
trunk/ChangeLog
trunk/Tomboy/AddinManager.cs
Modified: trunk/Tomboy/AddinManager.cs
==============================================================================
--- trunk/Tomboy/AddinManager.cs (original)
+++ trunk/Tomboy/AddinManager.cs Mon Mar 3 08:04:17 2008
@@ -53,19 +53,25 @@
// Make sure a Tomboy.addins file exists
string addins_file = Path.Combine (addins_dir, "Tomboy.addins");
- if (!File.Exists (addins_file)) {
- StreamWriter sw = File.CreateText (addins_file);
+ // Always recreate this file. This means it's
+ // completely hands-off to the user. This is done to
+ // support upgrades and parallel install scenarios,
+ // ensuring that Tomboy does its best not to load old
+ // versions of addins (which may no longer be compatible
+ // with the new version of Tomboy).
+ // See bug #514931 for details.
+ using (StreamWriter sw = File.CreateText (addins_file)) {
string addins_file_contents = String.Format (
"<!--\n" +
" This file was automatically generated. Editing this\n" +
- " file by hand is strongly discouraged.\n" +
+ " file by hand is strongly discouraged and such changes\n" +
+ " may be reverted at any time.\n" +
"-->\n\n" +
"<Addins>\n" +
"\t<Directory>{0}</Directory>\n" +
"</Addins>\n",
Defines.SYS_ADDINS_DIR);
sw.Write (addins_file_contents);
- sw.Close ();
}
Mono.Addins.AddinManager.AddinLoaded += OnAddinLoaded;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]