2017-07-16 18:26:18 +02:00
|
|
|
#!/usr/bin/python3 -OO
|
2004-11-25 20:27:09 +01:00
|
|
|
##
|
2008-08-15 05:20:23 +02:00
|
|
|
## Copyright (C) 2005 Yann Le Boulanger <asterix AT lagaule.org>
|
|
|
|
## Copyright (C) 2006 Dimitur Kirov <dkirov AT gmail.com>
|
|
|
|
## Stefan Bethge <stefan AT lanpartei.de>
|
|
|
|
## Copyright (C) 2008 Jonathan Schleifer <js-gajim AT webkeks.org>
|
2004-11-25 20:27:09 +01:00
|
|
|
##
|
2008-08-15 05:20:23 +02:00
|
|
|
## This file is part of Gajim.
|
2004-11-25 20:27:09 +01:00
|
|
|
##
|
2008-08-15 05:20:23 +02:00
|
|
|
## Gajim is free software; you can redistribute it and/or modify
|
2004-11-25 20:27:09 +01:00
|
|
|
## it under the terms of the GNU General Public License as published
|
2008-08-15 05:20:23 +02:00
|
|
|
## by the Free Software Foundation; version 3 only.
|
2004-11-25 20:27:09 +01:00
|
|
|
##
|
2008-08-15 05:20:23 +02:00
|
|
|
## Gajim is distributed in the hope that it will be useful,
|
2004-11-25 20:27:09 +01:00
|
|
|
## but WITHOUT ANY WARRANTY; without even the implied warranty of
|
2008-08-15 05:20:23 +02:00
|
|
|
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
2004-11-25 20:27:09 +01:00
|
|
|
## GNU General Public License for more details.
|
2008-08-15 05:20:23 +02:00
|
|
|
##
|
|
|
|
## You should have received a copy of the GNU General Public License
|
|
|
|
## along with Gajim. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
##
|
2004-11-25 20:27:09 +01:00
|
|
|
|
2017-07-16 18:26:18 +02:00
|
|
|
import os
|
|
|
|
import sys
|
2004-11-25 20:27:09 +01:00
|
|
|
|
2017-07-17 21:36:17 +02:00
|
|
|
if sys.platform != 'win32':
|
|
|
|
if os.geteuid() == 0:
|
|
|
|
sys.exit("You must not launch gajim as root, it is insecure.")
|
2009-02-17 13:29:54 +01:00
|
|
|
|
2017-08-11 11:16:57 +02:00
|
|
|
sys.path.append("@PY_SITEDIR@")
|
|
|
|
|
2017-07-16 18:26:18 +02:00
|
|
|
import gi
|
|
|
|
gi.require_version('Gtk', '3.0')
|
|
|
|
from gi.repository import Gtk
|
|
|
|
import gajim.history_manager as g
|
|
|
|
|
|
|
|
g.HistoryManager()
|
|
|
|
Gtk.main()
|