interfaces: add com.canonical.UrlLauncher.XdgOpen to unity7 interface #1167

Merged
merged 6 commits into from May 20, 2016

Conversation

Projects
None yet
3 participants
Collaborator

mvo5 commented May 13, 2016

No description provided.

mvo5 added some commits May 13, 2016

@mvo5 mvo5 changed the title from interfaces: add com.canonical.SnappyUrlHelper.XdgOpen to unity7 interface to interfaces: add com.canonical.UrlLauncher.XdgOpen to unity7 interface May 14, 2016

interfaces/builtin/unity7.go
+dbus (send)
+ bus=session
+ interface=com.canonical.UrlLauncher.XdgOpen
+ peer=(label=unconfined),
@jdstrand

jdstrand May 16, 2016

Contributor

Can you comment on what this does, the XdgOpen API, etc? This rule is awfully open ended and seems like it would allow an application to launch arbitrary other applications, perhaps with arguments.

@niemeyer

niemeyer May 16, 2016

Contributor

This was a strawman. We're renaming it to com.canonical.URLLauncher, and must implement filtering of URLs on the server end. Actually, we should probably rename it to com.canonical.SafeLauncher instead, with an OpenURL method. WDYT, @mvo5?

interfaces/builtin/unity7.go
+# url helper
+dbus (send)
+ bus=session
+ interface=com.canonical.UrlLauncher.XdgOpen
@niemeyer

niemeyer May 19, 2016

Contributor

Can we please change this to:

com.canonical.SafeLauncher.OpenURL?

interfaces/builtin/unity7.go
@@ -227,6 +233,7 @@ dbus (receive)
interface=org.freedesktop.Notifications
member=NotificationClosed
peer=(label=unconfined),
+>>>>>>> upstream/master
@niemeyer

niemeyer May 19, 2016

Contributor

Left over from conflict here.

@mvo5

mvo5 May 20, 2016

Collaborator

Ups, sorry. Fixed

Contributor

niemeyer commented May 19, 2016

LGTM with the two points addressed.

mvo5 added some commits May 20, 2016

@mvo5 mvo5 merged commit 7167d0b into snapcore:master May 20, 2016

4 checks passed

Integration tests Success
Details
autopkgtest Success
Details
continuous-integration/travis-ci/pr The Travis CI build passed
Details
coverage/coveralls Coverage increased (+0.007%) to 79.62%
Details
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment