Write default config on first run

This commit is contained in:
Hylke Bons 2011-05-26 12:58:12 +01:00
parent 8f735b499a
commit d9cf40153f
2 changed files with 4 additions and 1 deletions

View file

@ -70,7 +70,9 @@ namespace SparkleShare {
UserInfoForm.AddEntry ("Email Address:");
UserInfoForm.CellSize = new SizeF (280, 22);
UserInfoForm.IntercellSpacing = new SizeF (4, 4);
// TODO: Move to Controller.WriteDefaultConfig
string full_name = new UnixUserInfo (UnixEnvironment.UserName).RealName;
if (string.IsNullOrEmpty (full_name))
full_name = "";

View file

@ -116,6 +116,7 @@ namespace SparkleShare {
FirstRun = false;
} else {
WriteDefaultConfig ("Unknown", "");
FirstRun = true;
}