Merge lp:~ted/mediaplayer-app/url-overlays into lp:mediaplayer-app

Proposed by Ted Gould
Status: Needs review
Proposed branch: lp:~ted/mediaplayer-app/url-overlays
Merge into: lp:mediaplayer-app
Diff against target: 72 lines (+20/-2)
5 files modified
data/CMakeLists.txt (+1/-1)
debian/apparmor/mediaplayer-app (+15/-0)
debian/control (+1/-0)
debian/mediaplayer-app.install (+2/-1)
debian/rules (+1/-0)
To merge this branch: bzr merge lp:~ted/mediaplayer-app/url-overlays
Reviewer Review Type Date Requested Status
PS Jenkins bot continuous-integration Needs Fixing
Ubuntu Phablet Team Pending
Review via email: mp+261442@code.launchpad.net

Commit message

Setup to use the URL overlay feature

Description of the change

Use URL overlays for video:/// URLs

To post a comment you must log in.
Revision history for this message
Ted Gould (ted) wrote :
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Ted Gould (ted) wrote :

This works in that it gets started by the URL dispatcher and comes up as an overlay. But it seems that media-hub won't talk to it, I'm guessing because it has an apparmor profile it puts some restrictions on it that aren't expected. I'm not sure of the future of mediaplayer, so I'm not going to debug further, just using to it prove out the URL overlay feature.

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Jim Hodapp (jhodapp) wrote :

I'm not sure what is meant by url overlay. Can you better describe what this feature is exactly?

Revision history for this message
Ted Gould (ted) wrote :

On Tue, 2016-05-10 at 15:34 +0000, Jim Hodapp wrote:
> I'm not sure what is meant by url overlay. Can you better describe
> what this feature is exactly?
It allows it to show as an overlay to the current app instead of as an
application itself. We're removing the ability to use malformed desktop
files so the media player has become an issue again with not wanting
the app icon in the app grid. This allows it to be a URL to be called
from a scope, and show up over the dash when requested. I've built it
in a silo so you can see the behavior there: https://requests.ci-train.
ubuntu.com/#/ticket/1400

Revision history for this message
Jim Hodapp (jhodapp) wrote :

Makes sense, thanks Ted.

Unmerged revisions

364. By Ted Gould

Update to trunk

363. By Ted Gould

Adding 'attach_disconnected' for phone

362. By Ted Gould

Change to profile recommended by security

361. By Ted Gould

Move the apparmor config

360. By Ted Gould

Adding dh_apparmor dep

359. By Ted Gould

Removing unrelated comment

358. By Ted Gould

Adding an apparmor profile

357. By Ted Gould

Setup to use the URL overlay feature

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'data/CMakeLists.txt'
2--- data/CMakeLists.txt 2016-01-20 15:44:22 +0000
3+++ data/CMakeLists.txt 2016-05-10 15:23:33 +0000
4@@ -11,7 +11,7 @@
5 )
6
7 install(FILES ${CMAKE_CURRENT_BINARY_DIR}/${MEDIAPLAYER_DESKTOP_FILE}
8- DESTINATION ${CMAKE_INSTALL_DATADIR}/applications
9+ DESTINATION ${CMAKE_INSTALL_DATADIR}/url-dispatcher/url-overlays
10 )
11
12 install(FILES ${MEDIAPLAYER_APP_ICON} ${MEDIAPLAYER_APP_SYMBOLIC_ICON}
13
14=== added directory 'debian/apparmor'
15=== added file 'debian/apparmor/mediaplayer-app'
16--- debian/apparmor/mediaplayer-app 1970-01-01 00:00:00 +0000
17+++ debian/apparmor/mediaplayer-app 2016-05-10 15:23:33 +0000
18@@ -0,0 +1,15 @@
19+# vim:syntax=apparmor
20+#include <tunables/global>
21+
22+# Mostly unconfined. Don't allow capability or any mount rules. Also ensure that
23+# exec inherits from this profile
24+profile mediaplayer-app (attach_disconnected) {
25+ network,
26+ / rwkl,
27+ /** rwlkm,
28+ /** pix,
29+ dbus,
30+ signal,
31+ ptrace,
32+ unix,
33+}
34
35=== modified file 'debian/control'
36--- debian/control 2016-04-28 15:02:04 +0000
37+++ debian/control 2016-05-10 15:23:33 +0000
38@@ -4,6 +4,7 @@
39 Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
40 Build-Depends: cmake,
41 debhelper (>= 9),
42+ dh-apparmor,
43 dh-translations,
44 libgl1-mesa-dev | libgl-dev,
45 libgles2-mesa-dev,
46
47=== modified file 'debian/mediaplayer-app.install'
48--- debian/mediaplayer-app.install 2016-01-20 15:44:22 +0000
49+++ debian/mediaplayer-app.install 2016-05-10 15:23:33 +0000
50@@ -1,8 +1,9 @@
51-/usr/share/applications/mediaplayer-app.desktop
52+/usr/share/url-dispatcher/url-overlays/mediaplayer-app.desktop
53 /usr/bin/mediaplayer-app
54 /usr/share/mediaplayer-app/mediaplayer-app.png
55 /usr/share/mediaplayer-app/mediaplayer-app-symbolic.svg
56 /usr/share/mediaplayer-app/qml/*
57 /usr/share/locale/*/LC_MESSAGES/mediaplayer-app.mo
58 /usr/share/url-dispatcher/urls/*
59+debian/apparmor/mediaplayer-app etc/apparmor.d
60 /usr/share/content-hub/peers/mediaplayer-app
61
62=== modified file 'debian/rules'
63--- debian/rules 2013-06-11 15:20:49 +0000
64+++ debian/rules 2016-05-10 15:23:33 +0000
65@@ -7,6 +7,7 @@
66 dh $@ --parallel --with translations
67
68 override_dh_install:
69+ dh_apparmor --profile-name=mediaplayer-app -p mediaplayer-app
70 dh_install --fail-missing
71
72 override_dh_translations:

Subscribers

People subscribed via source and target branches

to all changes: