xref: /haiku/src/preferences/tracker/TrackerPreferences.cpp (revision 837b16251d4b2b6249ebcaa19bb319cbe82c6126)
1 /*
2  * Copyright 2009, Haiku Inc.
3  * Distributed under the terms of the MIT License.
4  *
5  * Authors:
6  *		Alexandre Deckner, alex@zappotek.com
7  */
8 
9 #include <Application.h>
10 #include <Catalog.h>
11 #include <Roster.h>
12 
13 
14 int
15 main(int argc, char **argv)
16 {
17 	B_TRANSLATE_MARK_SYSTEM_NAME("Tracker");
18 	BApplication app("application/x-vnd.Haiku-TrackerPreferences");
19 
20 	// launch Tracker if it's not running
21 	be_roster->Launch("application/x-vnd.Be-TRAK");
22 
23 	BMessage message;
24 	message.what = B_EXECUTE_PROPERTY;
25 	message.AddSpecifier("Preferences");
26 
27 	BMessenger("application/x-vnd.Be-TRAK").SendMessage(&message);
28 
29 	return 0;
30 }
31