Skip to content
Snippets Groups Projects
Commit df762976 authored by Philipp Hörist's avatar Philipp Hörist
Browse files

Merge branch 'fix-uri-handling' into 'master'

Fix xmpp: URI handling.

See merge request gajim/gajim!170
parents d858ff51 0707f1a2
No related branches found
No related tags found
No related merge requests found
......@@ -239,13 +239,15 @@ class GajimApplication(Gtk.Application):
for arg in file:
uri = arg.get_uri()
app.log('uri_handler').info('open %s', uri)
# remove xmpp:///
uri = uri[8:]
if not uri.startswith('xmpp:'):
continue
# remove xmpp:
uri = uri[5:]
try:
jid, cmd = uri.split('?')
except ValueError:
# Invalid URI
return
# No query argument
jid, cmd = uri, 'message'
if cmd == 'join':
self.interface.join_gc_minimal(None, jid)
elif cmd == 'roster':
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment