X-Git-Url: http://www.project-moonshot.org/gitweb/?a=blobdiff_plain;f=src%2Fmoonshot-identity-manager-app.vala;h=cb9c19652793ec2957352e53260e3bc2fbaa2a4b;hb=d3d3139fb62f8aef5d0bf7c304948b13a1ac38d6;hp=891ee6a8294eb9cff8dd07237363a890b577a4b8;hpb=88a64d1ef8910611699c07508f247d061f8d93e2;p=moonshot-ui.git diff --git a/src/moonshot-identity-manager-app.vala b/src/moonshot-identity-manager-app.vala index 891ee6a..cb9c196 100644 --- a/src/moonshot-identity-manager-app.vala +++ b/src/moonshot-identity-manager-app.vala @@ -39,8 +39,8 @@ public class IdentityManagerApp { if (view != null) view.show(); } - public IdentityManagerApp (bool headless) { - model = new IdentityManagerModel(this); + public IdentityManagerApp (bool headless, bool use_flat_file_store) { + model = new IdentityManagerModel(this, headless || use_flat_file_store); if (!headless) view = new IdentityManagerView(this); LinkedList card_list = model.get_card_list() ; @@ -295,9 +295,12 @@ public class IdentityManagerApp { } static bool explicitly_launched = true; +static bool use_flat_file_store = false; const GLib.OptionEntry[] options = { {"DBusLaunch",0,GLib.OptionFlags.REVERSE,GLib.OptionArg.NONE, ref explicitly_launched,"launch for dbus rpc use",null}, + {"FlatFileStore",0,0,GLib.OptionArg.NONE, + ref use_flat_file_store,"force use of flat file identity store (used by default only for headless operation)",null}, {null} }; @@ -332,7 +335,7 @@ public static int main(string[] args){ Intl.textdomain (Config.GETTEXT_PACKAGE); - var app = new IdentityManagerApp(headless); + var app = new IdentityManagerApp(headless, use_flat_file_store); app.explicitly_launched = explicitly_launched; if (app.explicitly_launched) {