Philipp Hörist pushed to branch master at gajim / gajim
Commits:
dadc85bb by Philipp Hörist at 2018-04-19T22:22:04+02:00
Fix tests
- - - - -
1 changed file:
- gajim/common/contacts.py
Changes:
=====================================
gajim/common/contacts.py
=====================================
--- a/gajim/common/contacts.py
+++ b/gajim/common/contacts.py
@@ -29,7 +29,6 @@
##
try:
- from gajim.common import app
from gajim.common import caps_cache
from gajim.common.account import Account
from gajim import common
@@ -523,9 +522,6 @@ class Contacts():
def get_groupchat_contact(self, jid):
if jid in self._contacts:
contacts = self._contacts[jid]
- if len(contacts) > 1:
- app.log('contacts').warning(
- 'Groupchat Contact found more than once')
if contacts[0].is_groupchat():
return contacts[0]
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/dadc85bb522544c35d445c811d1e79036f…
---
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/dadc85bb522544c35d445c811d1e79036f…
You're receiving this email because of your account on dev.gajim.org.
Philipp Hörist pushed to branch master at gajim / gajim
Commits:
70a7000d by Philipp Hörist at 2018-04-19T17:59:17+02:00
Dont be lenient with namespace
- - - - -
1 changed file:
- gajim/common/connection_handlers_events.py
Changes:
=====================================
gajim/common/connection_handlers_events.py
=====================================
--- a/gajim/common/connection_handlers_events.py
+++ b/gajim/common/connection_handlers_events.py
@@ -800,7 +800,7 @@ PresenceHelperEvent):
xtags = self.stanza.getTags('x')
for x in xtags:
namespace = x.getNamespace()
- if namespace.startswith(nbxmpp.NS_MUC):
+ if namespace == nbxmpp.NS_MUC_USER:
self.is_gc = True
elif namespace == nbxmpp.NS_SIGNED:
sig_tag = x
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/70a7000d440281e23d827170809c06f3d7…
---
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/70a7000d440281e23d827170809c06f3d7…
You're receiving this email because of your account on dev.gajim.org.
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.