aboutsummaryrefslogtreecommitdiff
path: root/src/main.vala
blob: 79683b23fa5b03450341c660f1ae44913c0a15f4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27

public static int
main (string[] args)
{
  Intl.bind_textdomain_codeset (Config.GETTEXT_PACKAGE, "UTF-8");
  Intl.setlocale (LocaleCategory.ALL, "");
  Intl.bindtextdomain (Config.GETTEXT_PACKAGE, Config.GNOMELOCALEDIR);
  Intl.textdomain (Config.GETTEXT_PACKAGE);

  var loop = new MainLoop ();

  BluetoothIndicator indicator;
  try
    {
      indicator = new BluetoothIndicator ();
    }
  catch (Error e)
    {
      warning ("Failed to start bluetooth indicator service: %s", e.message);
      return Posix.EXIT_FAILURE;
    }

  loop.run ();
  return Posix.EXIT_SUCCESS;
}
  //var service = new IndicatorSound.Service ();
  //return service.run ();