2
* Copyright (C) 2003 Sun Microsystems, Inc.
4
* This program is free software; you can redistribute it and/or
5
* modify it under the terms of the GNU General Public License as
6
* published by the Free Software Foundation; either version 2 of the
7
* License, or (at your option) any later version.
9
* This program is distributed in the hope that it will be useful, but
10
* WITHOUT ANY WARRANTY; without even the implied warranty of
11
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12
* General Public License for more details.
14
* You should have received a copy of the GNU General Public License
15
* along with this program; if not, write to the Free Software
16
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
20
* Mark McLoughlin <mark@skynet.ie>
25
#include "vino-input.h"
26
#include "vino-server.h"
27
#include "vino-shell.h"
28
#include "vino-prefs.h"
29
#include "vino-util.h"
33
#include <gnutls/gnutls.h>
37
vino_debug_gnutls (int level,
43
#endif /* HAVE_GNUTLS */
46
main (int argc, char **argv)
52
bindtextdomain (GETTEXT_PACKAGE, VINO_LOCALEDIR);
53
bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
54
textdomain (GETTEXT_PACKAGE);
56
gtk_init (&argc, &argv);
58
vino_setup_debug_flags ();
62
if (_vino_debug_flags & VINO_DEBUG_TLS)
64
gnutls_global_set_log_level (10);
65
gnutls_global_set_log_function (vino_debug_gnutls);
68
#endif /* HAVE_GNUTLS */
70
if (!vino_shell_register (&argc, argv))
73
display = gdk_display_get_default ();
76
if (!vino_input_init (display))
78
g_warning (_("Your XServer does not support the XTest extension - "
79
"remote desktop access will be view-only\n"));
83
vino_prefs_init (view_only);
85
n_screens = gdk_display_get_n_screens (display);
86
for (i = 0; i < n_screens; i++)
87
vino_prefs_create_server (gdk_display_get_screen (display, i));
91
vino_prefs_shutdown ();