Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=frugal-tweak.git;a=commitdiff;h=d5cca0a68ecc5b0353ad0a8c29d987d840f82b47

commit d5cca0a68ecc5b0353ad0a8c29d987d840f82b47
Author: bouleetbil <bouleet...@frogdev.info>
Date:   Fri Sep 17 18:30:41 2010 +0200

*save keymap

diff --git a/frugal-mono-tools/ConfSystem.cs b/frugal-mono-tools/ConfSystem.cs
index 4b91781..6466d47 100644
--- a/frugal-mono-tools/ConfSystem.cs
+++ b/frugal-mono-tools/ConfSystem.cs
@@ -157,6 +157,30 @@ namespace frugalmonotools
}
FileConf.Close();

+                               //keymap
+                               //search keymap=
+                               content = Outils.ReadFile(cch_keymap);
+                               lines = content.Split('\n');
+                               linesResult = new string[lines.Length];
+                               i =0;
+                   foreach (string line in lines)
+                   {
+                                       lineResult=line;
+                                       if (lineResult.IndexOf("keymap=")>=0)
+                                       {
+                                               lineResult="keymap="+_keymap;
+                                       }
+                                       linesResult[i]=lineResult;
+                                       i++;
+                               }
+                               //now save keymap
+                               FileConf = new StreamWriter(cch_keymap);
+                               foreach (string line in linesResult)
+                   {
+                                       FileConf.WriteLine(line);
+                               }
+                               FileConf.Close();
+
}
catch(Exception exe)
{
_______________________________________________
Frugalware-git mailing list
Frugalware-git@frugalware.org
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to