Philipp Hörist pushed to branch master at gajim / gajim
Commits:
5a28322e by Andrey Gursky at 2017-11-30T23:30:48+01:00
Fix appearance of status icon in MATE
Tested in Debian testing (Buster) with gtk2 based MATE 1.12,
gtk3 based 1.16 and 1.18.
Moreover the used environment variable is depreacated already in 1.12:
$ echo $MATE_DESKTOP_SESSION_ID
this-is-deprecated
Fixes #8757
- - - - -
15a8b503 by Philipp Hörist at 2017-12-01T21:55:53+01:00
Merge branch 'fix-statusicon-in-mate' into 'master'
Fix appearance of status icon in MATE
Closes #8757
See merge request gajim/gajim!163
- - - - -
1 changed file:
- gajim/statusicon.py
Changes:
=====================================
gajim/statusicon.py
=====================================
--- a/gajim/statusicon.py
+++ b/gajim/statusicon.py
@@ -125,9 +125,6 @@ class StatusIcon:
if os.environ.get('KDE_FULL_SESSION') == 'true':
# detect KDE session. see #5476
self.statusicon_size = '32'
- if os.environ.get('MATE_DESKTOP_SESSION_ID'):
- # detect MATE session.
- self.statusicon_size = '16'
self.set_img()
def set_img(self):
View it on GitLab: https://dev.gajim.org/gajim/gajim/compare/91ed375b9757081360989596ff1df6892…
---
View it on GitLab: https://dev.gajim.org/gajim/gajim/compare/91ed375b9757081360989596ff1df6892…
You're receiving this email because of your account on dev.gajim.org.
Yann Leboulanger pushed to branch master at gajim / gajim
Commits:
79ba8182 by Yann Leboulanger at 2017-11-30T17:19:17+01:00
better parse of version in config file in case old sha version of git is
used (-xyz instead of +xyz)
- - - - -
1 changed file:
- gajim/common/optparser.py
Changes:
=====================================
gajim/common/optparser.py
=====================================
--- a/gajim/common/optparser.py
+++ b/gajim/common/optparser.py
@@ -82,7 +82,10 @@ class OptionsParser:
app.config.set_per(optname, key, subname, value)
old_version = app.config.get('version')
- old_version = old_version.split('+', 1)[0]
+ if '+' in old_version:
+ old_version = old_version.split('+', 1)[0]
+ elif '-' in old_version:
+ old_version = old_version.split('-', 1)[0]
self.update_config(old_version, new_version)
self.old_values = {} # clean mem
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/79ba81825d66383b9f98751ad0c422be16…
---
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/79ba81825d66383b9f98751ad0c422be16…
You're receiving this email because of your account on dev.gajim.org.
Yann Leboulanger pushed to branch gajim_0.16 at gajim / gajim
Commits:
3dd35f5e by Yann Leboulanger at 2017-11-28T10:47:56+01:00
remove usage of OpenSSL.rand deprecated module. Fixes #8788
- - - - -
2 changed files:
- src/common/crypto.py
- src/gajim.py
Changes:
=====================================
src/common/crypto.py
=====================================
--- a/src/common/crypto.py
+++ b/src/common/crypto.py
@@ -76,50 +76,8 @@ def base28(n):
else:
return base28_chr[n]
-def add_entropy_sources_OpenSSL():
- # Other possibly variable data. This are very low quality sources of
- # entropy, but some of them are installation dependent and can be hard
- # to guess for the attacker.
- # Data available on all platforms Unix, Windows
- sources = [sys.argv, sys.builtin_module_names,
- sys.copyright, sys.getfilesystemencoding(), sys.hexversion,
- sys.modules, sys.path, sys.version, sys.api_version,
- os.environ, os.getcwd(), os.getpid()]
-
- for s in sources:
- OpenSSL.rand.add(str(s), 1)
-
- # The /proc filesystem on POSIX systems contains many random variables:
- # memory statistics, interrupt counts, network packet counts
- if os.name == 'posix':
- dirs = ['/proc', '/proc/net', '/proc/self']
- for d in dirs:
- if os.access(d, os.R_OK):
- for filename in os.listdir(d):
- OpenSSL.rand.add(filename, 0)
- try:
- with open(d + os.sep + filename, "r") as fp:
- # Limit the ammount of read bytes, in case a memory
- # file was opened
- OpenSSL.rand.add(str(fp.read(5000)), 1)
- except IOError:
- # Ignore all read and access errors
- pass
-
-PYOPENSSL_PRNG_PRESENT = False
-try:
- import OpenSSL.rand
- PYOPENSSL_PRNG_PRESENT = True
-except ImportError:
- # PyOpenSSL PRNG not available
- pass
-
def random_bytes(bytes_):
- if PYOPENSSL_PRNG_PRESENT:
- OpenSSL.rand.add(os.urandom(bytes_), bytes_)
- return OpenSSL.rand.bytes(bytes_)
- else:
- return os.urandom(bytes_)
+ return os.urandom(bytes_)
def generate_nonce():
return random_bytes(8)
=====================================
src/gajim.py
=====================================
--- a/src/gajim.py
+++ b/src/gajim.py
@@ -296,20 +296,6 @@ gajimpaths = configpaths.gajimpaths
pid_filename = gajimpaths['PID_FILE']
config_filename = gajimpaths['CONFIG_FILE']
-# Seed the OpenSSL pseudo random number generator from file and initialize
-RNG_SEED = gajimpaths['RNG_SEED']
-PYOPENSSL_PRNG_PRESENT = False
-try:
- import OpenSSL.rand
- from common import crypto
- PYOPENSSL_PRNG_PRESENT = True
- # Seed from file
- OpenSSL.rand.load_file(str(RNG_SEED))
- crypto.add_entropy_sources_OpenSSL()
- OpenSSL.rand.write_file(str(RNG_SEED))
-except ImportError:
- log.info("PyOpenSSL PRNG not available")
-
import traceback
import errno
import dialogs
@@ -456,9 +442,6 @@ except IOError, e2:
del pid_dir
def on_exit():
- # Save the entropy from OpenSSL PRNG
- if PYOPENSSL_PRNG_PRESENT:
- OpenSSL.rand.write_file(str(RNG_SEED))
# delete pid file on normal exit
if os.path.exists(pid_filename):
os.remove(pid_filename)
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/3dd35f5e762dcef2cf05e325705d0e7a2d…
---
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/3dd35f5e762dcef2cf05e325705d0e7a2d…
You're receiving this email because of your account on dev.gajim.org.