Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
gajim
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
pipantal
gajim
Commits
7943120b
Commit
7943120b
authored
Jan 13, 2018
by
André
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use setuptools' automatic script creation
parent
aa6e9e70
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
40 additions
and
118 deletions
+40
-118
gajim/gajim.py
gajim/gajim.py
+9
-1
gajim/gajim_remote.py
gajim/gajim_remote.py
+10
-1
gajim/history_manager.py
gajim/history_manager.py
+10
-3
launch.py
launch.py
+2
-10
scripts/gajim
scripts/gajim
+0
-32
scripts/gajim-history-manager
scripts/gajim-history-manager
+0
-36
scripts/gajim-remote
scripts/gajim-remote
+0
-31
setup.py
setup.py
+9
-4
No files found.
gajim/gajim.py
View file @
7943120b
...
...
@@ -437,6 +437,14 @@ class GajimApplication(Gtk.Application):
self
.
lookup_action
(
account
+
action_name
)
.
set_enabled
(
True
)
if
__name__
==
'__main__'
:
def
main
():
if
sys
.
platform
!=
'win32'
:
if
os
.
geteuid
()
==
0
:
sys
.
exit
(
"You must not launch gajim as root, it is insecure."
)
appli
=
GajimApplication
()
appli
.
run
(
sys
.
argv
)
if
__name__
==
'__main__'
:
main
()
gajim/gajim_remote.py
View file @
7943120b
...
...
@@ -27,6 +27,7 @@
# gajim-remote help will show you the D-BUS API of Gajim
import
os
import
sys
import
locale
import
urllib
...
...
@@ -500,5 +501,13 @@ class GajimRemote:
raise
exceptions
.
ServiceNotAvailable
return
None
if
__name__
==
'__main__'
:
def
main
():
if
os
.
geteuid
()
==
0
:
sys
.
exit
(
"You must not launch gajim as root, it is insecure."
)
GajimRemote
()
if
__name__
==
'__main__'
:
main
()
gajim/history_manager.py
View file @
7943120b
...
...
@@ -30,7 +30,6 @@
import
os
import
sys
import
signal
import
gi
gi
.
require_version
(
'Gtk'
,
'3.0'
)
from
gi.repository
import
Gtk
...
...
@@ -668,7 +667,15 @@ class HistoryManager:
path
=
self
.
logs_liststore
.
get_path
(
iter_
)
self
.
logs_listview
.
scroll_to_cell
(
path
)
if
__name__
==
'__main__'
:
signal
.
signal
(
signal
.
SIGINT
,
signal
.
SIG_DFL
)
# ^C exits the application
def
main
():
if
sys
.
platform
!=
'win32'
:
if
os
.
geteuid
()
==
0
:
sys
.
exit
(
"You must not launch gajim as root, it is insecure."
)
HistoryManager
()
Gtk
.
main
()
if
__name__
==
'__main__'
:
main
()
launch.py
View file @
7943120b
#!/usr/bin/env python3
import
os
import
sys
if
sys
.
platform
!=
'win32'
:
if
os
.
geteuid
()
==
0
:
sys
.
exit
(
"You must not launch gajim as root, it is insecure."
)
import
gajim.gajim
as
g
g
.
GajimApplication
()
.
run
(
sys
.
argv
)
from
gajim
import
gajim
gajim
.
main
()
scripts/gajim
deleted
100644 → 0
View file @
aa6e9e70
#!/usr/bin/env python3
##
## 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
sys
.
platform
!=
'win32'
:
if
os
.
geteuid
()
==
0
:
sys
.
exit
(
"You must not launch gajim as root, it is insecure."
)
import
gajim.gajim
as
g
g
.
GajimApplication
()
.
run
(
sys
.
argv
)
scripts/gajim-history-manager
deleted
100644 → 0
View file @
aa6e9e70
#!/usr/bin/env python3
##
## 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
sys
.
platform
!=
'win32'
:
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
()
scripts/gajim-remote
deleted
100644 → 0
View file @
aa6e9e70
#!/usr/bin/env python3
##
## 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
()
setup.py
View file @
7943120b
...
...
@@ -261,10 +261,15 @@ setup(
'test_nogui'
:
test_nogui
,
'update_po'
:
update_po
,
},
scripts
=
[
'scripts/gajim'
,
'scripts/gajim-history-manager'
,
'scripts/gajim-remote'
],
entry_points
=
{
'console_scripts'
:
[
'gajim-remote = gajim.gajim_remote:main'
,
],
'gui_scripts'
:
[
'gajim = gajim.gajim:main'
,
'gajim-history-manager = gajim.history_manager:main'
,
]
},
packages
=
find_packages
(
exclude
=
[
"gajim.dev"
,
"test*"
]),
package_data
=
{
'gajim'
:
package_data
},
data_files
=
data_files
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment