1 /*******************************************************************************
2 This file is part of WhiteStork.
4 WhiteStork is free software; you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by
6 the Free Software Foundation; either version 2 of the License, or
7 (at your option) any later version.
9 WhiteStork is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU General Public License for more details.
14 You should have received a copy of the GNU General Public License
15 along with WhiteStork; if not, write to the Free Software
16 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
18 Copyright 2006 ComArch S.A.
19 *******************************************************************************/
25 #include <pc-instances.h>
26 #include <ws_manager.h>
27 #include <gconf/gconf-client.h>
28 #include <gconf/gconf.h>
30 int main (gint argc, gchar** argv)
32 /* check if there is no other instance of WhiteStork */
33 if (is_already_running_this_application() > 1)
35 /* if YES - do not start another one - terminate*/
36 g_debug("Another instance of application curently is running\n");
42 /* run GUI for WhiteStork */
44 if ( !g_spawn_command_line_async("/usr/bin/WhiteStork", &err) )
46 g_debug("Could not run GUI for WhiteStork\nReason: %s",
52 WSMngSearchData* search_data = ws_manager_create();
54 ws_mng_init_dbus(search_data);
55 ws_mng_init(search_data);
57 ws_mng_start_main_loop(search_data);
59 ws_mng_close(search_data);
61 //g_free(search_data);