Philipp Hörist pushed to branch master at gajim / gajim
Commits:
a3210056 by Daniel at 2018-04-18T23:02:25+02:00
Update flatpak README.md
- - - - -
1 changed file:
- flatpak/README.md
Changes:
=====================================
flatpak/README.md
=====================================
--- a/flatpak/README.md
+++ b/flatpak/README.md
@@ -1,22 +1,58 @@
-Run the following steps from a directory containing the gajim source dir.
-
-Install gajim flatpak repo
---------------------------
-
-1. `flatpak --user remote-add --from gnome https://sdk.gnome.org/gnome.flatpakrepo`
-1. `flatpak --user install gnome org.gnome.Platform//3.28`
-1. `flatpak --user install gnome org.gnome.Sdk//3.28`
-1. `flatpak-builder --repo=repo directory gajim/org.gajim.Gajim.json`
-1. `flatpak --user remote-add --no-gpg-verify repo repo`
-1. `flatpak --user install repo org.gajim.Gajim`
-1. `flatpak run org.gajim.Gajim`
-
-Update gajim flatpak repo
--------------------------
-
-1. update your gajim source repository
-1. `rm -r directory`
-1. `flatpak-builder --repo=repo directory gajim/org.gajim.Gajim.json`
-1. `flatpak --user update`
-
-Note: remove `--user` if you want a system-wide installation
+# Install Gajim via Flatpak
+
+**Prerequisites:**
+
+You need to have `flatpak` and `flatpak-builder` installed. For this example, we use `git` for downloading/updating Gajim's sources.
+
+
+### Download Gajim's sources
+
+In this example, we do a `git clone` of the repository, so you need to have `git` installed. Alternatively, you can also download the sources from our Gitlab via webbrowser.
+
+`git clone https://dev.gajim.org/gajim/gajim.git ~/Gajim`
+
+`cd ~/Gajim`
+
+*Note: Source tarballs and snapshots do _not_ include 'org.gajim.Gajim.json', which is necessary for installation via Flatpak.*
+
+
+### Install Gajim and dependencies
+
+Replace install path `~/Gajim/gajim_flatpak` with an install path of your choice.
+
+*Note: Remove `--user` if you want a system-wide installation.*
+
+1. `flatpak --user remote-add --from gnome https://sdk.gnome.org/gnome.flatpakrepo`
+2. `flatpak --user install gnome org.gnome.Platform//3.28`
+3. `flatpak --user install gnome org.gnome.Sdk//3.28`
+4. `flatpak-builder --repo=gajim_flatpak_repo ~/Gajim/gajim_flatpak ~/Gajim/org.gajim.Gajim.json`
+5. `flatpak --user remote-add --no-gpg-verify gajim_flatpak_repo ~/Gajim/gajim_flatpak_repo`
+6. `flatpak --user install gajim_flatpak_repo org.gajim.Gajim`
+7. `flatpak run org.gajim.Gajim`
+
+Thats it, you are now running Gajim via Flatpak!
+
+
+## How to update
+
+### Update Gajim's sources
+
+In this example, we use `git` to update the repository. You can also download the sources from our Gitlab via webbrowser.
+
+`cd ~/Gajim`
+
+`git pull --rebase`
+
+
+### Remove previous Flatpak directory
+
+`rm -r ~/Gajim/gajim_flatpak`
+
+
+### Install and update Gajim
+
+1. `flatpak-builder --repo=gajim_flatpak_repo ~/Gajim/gajim_flatpak ~/Gajim/org.gajim.Gajim.json`
+2. `flatpak --user update`
+3. `flatpak run org.gajim.Gajim`
+
+Gajim is now updated.
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/a32100564ce1cb4897e430b7282881c4b0…
---
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/a32100564ce1cb4897e430b7282881c4b0…
You're receiving this email because of your account on dev.gajim.org.
Philipp Hörist pushed to branch master at gajim / gajim
Commits:
a45554a1 by Philipp Hörist at 2018-04-17T22:00:15+02:00
Save history export with utf8 encoding
- - - - -
1 changed file:
- gajim/history_manager.py
Changes:
=====================================
gajim/history_manager.py
=====================================
--- a/gajim/history_manager.py
+++ b/gajim/history_manager.py
@@ -515,7 +515,7 @@ class HistoryManager:
# AT THIS TIME FIRST EXECUTE IS LOST! WTH!!!!!
results = self.cur.fetchall()
#print results[0]
- file_ = open(path_to_file, 'w')
+ file_ = open(path_to_file, 'w', encoding='utf-8')
for row in results:
# in store: time, kind, message, contact_name FROM logs
# in text: JID or You or nickname (if it's gc_msg), time, message
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/a45554a10bcacf0ecd5f38a16ebafe696d…
---
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/a45554a10bcacf0ecd5f38a16ebafe696d…
You're receiving this email because of your account on dev.gajim.org.
Philipp Hörist pushed to branch master at gajim / gajim
Commits:
e93ab408 by Daniel at 2018-04-15T22:45:04+02:00
Fix History Manager search
- - - - -
1 changed file:
- gajim/history_manager.py
Changes:
=====================================
gajim/history_manager.py
=====================================
--- a/gajim/history_manager.py
+++ b/gajim/history_manager.py
@@ -640,7 +640,7 @@ class HistoryManager:
def on_search_results_listview_row_activated(self, widget, path, column):
# get log_line_id, jid_id from row we double clicked
- log_line_id = self.search_results_liststore[path][0]
+ log_line_id = str(self.search_results_liststore[path][0])
jid = self.search_results_liststore[path][1]
# make it string as in gtk liststores I have them all as strings
# as this is what db returns so I don't have to fight with types
@@ -661,13 +661,14 @@ class HistoryManager:
iter_ = self.logs_liststore.get_iter_first()
while iter_:
- # self.logs_liststore[iter_][0] holds lon_line_ids
+ # self.logs_liststore[iter_][0] holds log_line_ids
if self.logs_liststore[iter_][0] == log_line_id:
break
iter_ = self.logs_liststore.iter_next(iter_)
path = self.logs_liststore.get_path(iter_)
self.logs_listview.scroll_to_cell(path)
+ self.logs_listview.get_selection().select_path(path)
def main():
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/e93ab408ec9da69da767bbea52383045e8…
---
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/e93ab408ec9da69da767bbea52383045e8…
You're receiving this email because of your account on dev.gajim.org.
Philipp Hörist pushed to branch master at gajim / gajim
Commits:
a86abf2c by Markus Wintermann at 2018-04-14T22:01:58+02:00
Update proxy comobobox in accounts/connections
After a new proxy was added/removed by ManageProxies the combobox in
accounts/connections gets updated
- - - - -
1 changed file:
- gajim/accounts_window.py
Changes:
=====================================
gajim/accounts_window.py
=====================================
--- a/gajim/accounts_window.py
+++ b/gajim/accounts_window.py
@@ -113,10 +113,10 @@ class AccountsWindow(Gtk.ApplicationWindow):
self.stack.set_visible_child(page)
def update_proxy_list(self):
- page = self.stack.get_child_by_name('connetion')
+ page = self.stack.get_child_by_name('connection')
if page is None:
return
- page.options['proxy'].update_values()
+ page.listbox.get_option('proxy').update_values()
def check_relogin(self):
for account in self.need_relogin:
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/a86abf2cf901bb5559dc29e4fc8d496ba5…
---
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/a86abf2cf901bb5559dc29e4fc8d496ba5…
You're receiving this email because of your account on dev.gajim.org.
Philipp Hörist pushed to branch master at gajim / gajim
Commits:
93af68f8 by Philipp Hörist at 2018-04-14T10:34:58+02:00
Dont show error when receiving invalid avatars
Fixes #9022
- - - - -
1 changed file:
- gajim/common/pep.py
Changes:
=====================================
gajim/common/pep.py
=====================================
--- a/gajim/common/pep.py
+++ b/gajim/common/pep.py
@@ -483,6 +483,10 @@ class AvatarNotificationPEP(AbstractPEP):
def _extract_info(self, items):
self.avatar = None
for item in items.getTags('item'):
+ metadata = item.getTag('metadata')
+ if metadata is None:
+ app.log('avatar').warning('Invalid avatar stanza:\n%s', items)
+ break
info = item.getTag('metadata').getTag('info')
if info is not None:
self.avatar = info.getAttrs()
@@ -494,7 +498,7 @@ class AvatarNotificationPEP(AbstractPEP):
con = app.connections[account]
if self.avatar is None:
# Remove avatar
- app.log('avatar').debug('Remove (Pubsub): %s', jid)
+ app.log('avatar').info('Remove (Pubsub): %s', jid)
app.contacts.set_avatar(account, jid, None)
own_jid = con.get_own_jid().getStripped()
app.logger.set_avatar_sha(own_jid, jid, None)
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/93af68f81c646bca0bd294e83ca27ce9ff…
---
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/93af68f81c646bca0bd294e83ca27ce9ff…
You're receiving this email because of your account on dev.gajim.org.
Philipp Hörist pushed to branch master at gajim / gajim
Commits:
9f0eaf9d by Daniel at 2018-04-13T22:36:57+02:00
Fix placeholder not being removed when inserting nick in MUC via context menu
- - - - -
1 changed file:
- gajim/groupchat_control.py
Changes:
=====================================
gajim/groupchat_control.py
=====================================
--- a/gajim/groupchat_control.py
+++ b/gajim/groupchat_control.py
@@ -2787,6 +2787,7 @@ class GroupchatControl(ChatControlBase):
return True
def append_nick_in_msg_textview(self, widget, nick):
+ self.msg_textview.remove_placeholder()
message_buffer = self.msg_textview.get_buffer()
start_iter, end_iter = message_buffer.get_bounds()
cursor_position = message_buffer.get_insert()
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/9f0eaf9df797a4c4cabc19dd2c2aa68eef…
---
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/9f0eaf9df797a4c4cabc19dd2c2aa68eef…
You're receiving this email because of your account on dev.gajim.org.
Philipp Hörist pushed to branch master at gajim / python-nbxmpp
Commits:
a1e8cee4 by Philipp Hörist at 2018-04-13T00:30:47+02:00
Fix parsing utf8 cert files
Fixes #51
- - - - -
1 changed file:
- nbxmpp/tls_nb.py
Changes:
=====================================
nbxmpp/tls_nb.py
=====================================
--- a/nbxmpp/tls_nb.py
+++ b/nbxmpp/tls_nb.py
@@ -24,6 +24,7 @@ from .plugin import PlugIn
import sys
import os
import time
+import io
import traceback
@@ -337,7 +338,10 @@ class NonBlockingTLS(PlugIn):
if not os.path.isfile(cert_path):
return
try:
- f = open(cert_path)
+ if sys.version_info[0] > 2:
+ f = open(cert_path, encoding='utf-8')
+ else:
+ f = io.open(cert_path, encoding='utf-8')
except IOError as e:
log.warning('Unable to open certificate file %s: %s' % \
(cert_path, str(e)))
View it on GitLab: https://dev.gajim.org/gajim/python-nbxmpp/commit/a1e8cee482709318a2fc4b9486…
---
View it on GitLab: https://dev.gajim.org/gajim/python-nbxmpp/commit/a1e8cee482709318a2fc4b9486…
You're receiving this email because of your account on dev.gajim.org.