arblant
firefox-vpn-client / app / linux / runner / main.cc
main.cc16 lines · 456 B
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
#include <cstring>

#include "my_application.h"

int main(int argc, char** argv) {
  // A copy started with its own data folder (development and tests) runs
  // beside the installed one.
  gboolean unique = TRUE;
  for (int i = 1; i < argc; i++) {
    if (strncmp(argv[i], "--data-dir=", 11) == 0) {
      unique = FALSE;
    }
  }
  g_autoptr(MyApplication) app = my_application_new(unique);
  return g_application_run(G_APPLICATION(app), argc, argv);
}