Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
gajim
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Weblate
gajim
Commits
b44f13df
Commit
b44f13df
authored
12 years ago
by
Yann Leboulanger
Browse files
Options
Downloads
Patches
Plain Diff
gajim-remote handles ?message in URIs. Fixes #6804, see #2133
Patch based on joeka's one in #6804
parent
f801ecab
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/gajim-remote.py
+33
-21
33 additions, 21 deletions
src/gajim-remote.py
with
33 additions
and
21 deletions
src/gajim-remote.py
+
33
−
21
View file @
b44f13df
...
...
@@ -544,30 +544,42 @@ class GajimRemote:
if
not
'
?
'
in
uri
:
self
.
command
=
sys
.
argv
[
1
]
=
'
open_chat
'
return
if
'
body=
'
in
uri
:
# Open chat window and paste the text in the input message dialog
self
.
command
=
sys
.
argv
[
1
]
=
'
open_chat
'
message
=
uri
.
split
(
'
body=
'
)
message
=
message
[
1
].
split
(
'
;
'
)[
0
]
try
:
message
=
urllib
.
unquote
(
message
)
except
UnicodeDecodeError
:
pass
sys
.
argv
[
2
]
=
uri
.
split
(
'
?
'
)[
0
]
if
len
(
sys
.
argv
)
==
4
:
# jid in the sys.argv
sys
.
argv
.
append
(
message
)
else
:
sys
.
argv
.
append
(
''
)
sys
.
argv
.
append
(
message
)
sys
.
argv
[
3
]
=
''
sys
.
argv
[
4
]
=
message
return
(
jid
,
action
)
=
uri
.
split
(
'
?
'
,
1
)
jid
,
args
=
uri
.
split
(
'
?
'
,
1
)
try
:
jid
=
urllib
.
unquote
(
jid
)
except
UnicodeDecodeError
:
pass
args
=
args
.
split
(
'
;
'
)
action
=
None
options
=
{}
if
args
:
action
=
args
[
0
]
for
arg
in
args
[
1
:]:
opt
=
arg
.
split
(
'
=
'
,
1
)
if
len
(
opt
)
!=
2
:
continue
options
[
opt
[
0
]]
=
opt
[
1
]
if
action
==
'
message
'
:
self
.
command
=
sys
.
argv
[
1
]
=
'
open_chat
'
sys
.
argv
[
2
]
=
jid
if
'
body
'
in
options
:
# Open chat window and paste the text in the input message
# dialog
message
=
options
[
'
body
'
]
try
:
message
=
urllib
.
unquote
(
message
)
except
UnicodeDecodeError
:
pass
if
len
(
sys
.
argv
)
==
4
:
# jid in the sys.argv
sys
.
argv
.
append
(
message
)
else
:
sys
.
argv
.
append
(
''
)
sys
.
argv
.
append
(
message
)
sys
.
argv
[
3
]
=
''
sys
.
argv
[
4
]
=
message
return
sys
.
argv
[
2
]
=
jid
if
action
==
'
join
'
:
self
.
command
=
sys
.
argv
[
1
]
=
'
join_room
'
...
...
@@ -576,7 +588,7 @@ class GajimRemote:
sys
.
argv
.
append
(
sys
.
argv
[
3
])
sys
.
argv
[
3
]
=
''
return
if
action
.
startswith
(
'
roster
'
)
:
if
action
==
'
roster
'
:
# Add contact to roster
self
.
command
=
sys
.
argv
[
1
]
=
'
add_contact
'
return
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment