Update bin scripts
This commit is contained in:
		
							parent
							
								
									230739bbb1
								
							
						
					
					
						commit
						3b80057888
					
				
					 5 changed files with 79 additions and 19 deletions
				
			
		
							
								
								
									
										11
									
								
								Makefile.am
									
										
									
									
									
								
							
							
						
						
									
										11
									
								
								Makefile.am
									
										
									
									
									
								
							| 
						 | 
				
			
			@ -11,15 +11,14 @@ EXTRA_DIST = \
 | 
			
		|||
	intltool-merge.in 	\
 | 
			
		||||
	intltool-update.in	\
 | 
			
		||||
	win \
 | 
			
		||||
	scripts/gajim.in
 | 
			
		||||
	
 | 
			
		||||
	scripts/gajim \
 | 
			
		||||
	scripts/gajim-history-manager \
 | 
			
		||||
	scripts/gajim-remote
 | 
			
		||||
 | 
			
		||||
DISTCLEANFILES = 		\
 | 
			
		||||
	intltool-extract 	\
 | 
			
		||||
	intltool-merge 		\
 | 
			
		||||
	intltool-update		\
 | 
			
		||||
	scripts/gajim		\
 | 
			
		||||
	scripts/gajim-remote	\
 | 
			
		||||
	scripts/gajim-histrory-manager
 | 
			
		||||
	intltool-update
 | 
			
		||||
 | 
			
		||||
MAINTAINERCLEANFILES = \
 | 
			
		||||
	configure \
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -77,9 +77,6 @@ AC_CONFIG_FILES([
 | 
			
		|||
	data/gajim-remote.desktop.in
 | 
			
		||||
	data/defs.py
 | 
			
		||||
	gajim/Makefile
 | 
			
		||||
	scripts/gajim
 | 
			
		||||
	scripts/gajim-remote:scripts/gajim.in
 | 
			
		||||
	scripts/gajim-history-manager:scripts/gajim.in
 | 
			
		||||
	po/Makefile.in
 | 
			
		||||
	plugins/Makefile
 | 
			
		||||
])
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,5 +1,4 @@
 | 
			
		|||
#!/bin/sh
 | 
			
		||||
## scripts/gajim.in
 | 
			
		||||
#!/usr/bin/python3 -OO
 | 
			
		||||
##
 | 
			
		||||
## Copyright (C) 2005 Yann Le Boulanger <asterix AT lagaule.org>
 | 
			
		||||
## Copyright (C) 2006 Dimitur Kirov <dkirov AT gmail.com>
 | 
			
		||||
| 
						 | 
				
			
			@ -21,13 +20,12 @@
 | 
			
		|||
## along with Gajim. If not, see <http://www.gnu.org/licenses/>.
 | 
			
		||||
##
 | 
			
		||||
 | 
			
		||||
APP=`basename $0`
 | 
			
		||||
if test $(id -u) -eq 0; then
 | 
			
		||||
	echo "You must not launch $APP as root, it is INSECURE"
 | 
			
		||||
	exit 1
 | 
			
		||||
fi
 | 
			
		||||
import os
 | 
			
		||||
import sys
 | 
			
		||||
 | 
			
		||||
[ "$APP" = "gajim-history-manager" ] && APP="history_manager"
 | 
			
		||||
if os.geteuid() == 0:
 | 
			
		||||
    sys.exit("You must not launch gajim as root, it is insecure.")
 | 
			
		||||
 | 
			
		||||
cd "@GAJIM_SRCDIR@"
 | 
			
		||||
exec "@PYTHON@" -OO $APP.py "$@"
 | 
			
		||||
import gajim.gajim as g
 | 
			
		||||
 | 
			
		||||
g.GajimApplication().run(sys.argv)
 | 
			
		||||
							
								
								
									
										35
									
								
								scripts/gajim-history-manager
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										35
									
								
								scripts/gajim-history-manager
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,35 @@
 | 
			
		|||
#!/usr/bin/python3 -OO
 | 
			
		||||
##
 | 
			
		||||
## 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>
 | 
			
		||||
##
 | 
			
		||||
## This file is part of Gajim.
 | 
			
		||||
##
 | 
			
		||||
## Gajim is free software; you can redistribute it and/or modify
 | 
			
		||||
## it under the terms of the GNU General Public License as published
 | 
			
		||||
## by the Free Software Foundation; version 3 only.
 | 
			
		||||
##
 | 
			
		||||
## Gajim is distributed in the hope that it will be useful,
 | 
			
		||||
## but WITHOUT ANY WARRANTY; without even the implied warranty of
 | 
			
		||||
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 | 
			
		||||
## GNU General Public License for more details.
 | 
			
		||||
##
 | 
			
		||||
## You should have received a copy of the GNU General Public License
 | 
			
		||||
## along with Gajim. If not, see <http://www.gnu.org/licenses/>.
 | 
			
		||||
##
 | 
			
		||||
 | 
			
		||||
import os
 | 
			
		||||
import sys
 | 
			
		||||
 | 
			
		||||
if os.geteuid() == 0:
 | 
			
		||||
    sys.exit("You must not launch gajim as root, it is insecure.")
 | 
			
		||||
 | 
			
		||||
import gi
 | 
			
		||||
gi.require_version('Gtk', '3.0')
 | 
			
		||||
from gi.repository import Gtk
 | 
			
		||||
import gajim.history_manager as g
 | 
			
		||||
 | 
			
		||||
g.HistoryManager()
 | 
			
		||||
Gtk.main()
 | 
			
		||||
							
								
								
									
										31
									
								
								scripts/gajim-remote
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										31
									
								
								scripts/gajim-remote
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,31 @@
 | 
			
		|||
#!/usr/bin/python3 -OO
 | 
			
		||||
##
 | 
			
		||||
## 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>
 | 
			
		||||
##
 | 
			
		||||
## This file is part of Gajim.
 | 
			
		||||
##
 | 
			
		||||
## Gajim is free software; you can redistribute it and/or modify
 | 
			
		||||
## it under the terms of the GNU General Public License as published
 | 
			
		||||
## by the Free Software Foundation; version 3 only.
 | 
			
		||||
##
 | 
			
		||||
## Gajim is distributed in the hope that it will be useful,
 | 
			
		||||
## but WITHOUT ANY WARRANTY; without even the implied warranty of
 | 
			
		||||
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 | 
			
		||||
## GNU General Public License for more details.
 | 
			
		||||
##
 | 
			
		||||
## You should have received a copy of the GNU General Public License
 | 
			
		||||
## along with Gajim. If not, see <http://www.gnu.org/licenses/>.
 | 
			
		||||
##
 | 
			
		||||
 | 
			
		||||
import os
 | 
			
		||||
import sys
 | 
			
		||||
 | 
			
		||||
if os.geteuid() == 0:
 | 
			
		||||
    sys.exit("You must not launch gajim as root, it is insecure.")
 | 
			
		||||
 | 
			
		||||
import gajim.gajim_remote as g
 | 
			
		||||
 | 
			
		||||
g.GajimRemote()
 | 
			
		||||
		Loading…
	
	Add table
		
		Reference in a new issue