Merge lp:~zeller-benjamin/unity8/scope-url into lp:unity8

Proposed by Benjamin Zeller
Status: Merged
Approved by: Michał Sawicz
Approved revision: 1188
Merged at revision: 1216
Proposed branch: lp:~zeller-benjamin/unity8/scope-url
Merge into: lp:unity8
Diff against target: 59 lines (+17/-0)
5 files modified
data/CMakeLists.txt (+3/-0)
data/unity8-dash.conf (+2/-0)
data/unity8-dash.url-dispatcher (+6/-0)
debian/unity8.install (+1/-0)
qml/Dash/DashContent.qml (+5/-0)
To merge this branch: bzr merge lp:~zeller-benjamin/unity8/scope-url
Reviewer Review Type Date Requested Status
PS Jenkins bot (community) continuous-integration Approve
Michał Sawicz Approve
Review via email: mp+231749@code.launchpad.net

Commit message

Add support for scope:// url in the dash

Description of the change

 * Are there any related MPs required for this MP to build/function as expected? Please list.
lp:~ted/url-dispatcher/scope-uri needed to work, but can land separately

 * Did you perform an exploratory manual test run of your code change and any related functionality?
Y
 * Did you make sure that your branch does not contain spurious tags?
Y
 * If you changed the packaging (debian), did you subscribe the ubuntu-unity team to this MP?
N/A
 * If you changed the UI, has there been a design review?
N/A

To post a comment you must log in.
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
Michał Sawicz (saviq) wrote :

Hey, you can drop the .url-dispatcher file after all, scope:// will be handled in a custom way towards unity8-dash.

review: Needs Fixing
Revision history for this message
Michał Sawicz (saviq) wrote :

Apparently Ted still will parse the file, just the activation will be special.

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

Actually, I think having the url-dispatcher file is a good idea. Then the dash can configure which URLs it wants in case others are needed later. I'll just special case the unity8-dash name instead of which URL patterns are associated with it.

Revision history for this message
Michał Sawicz (saviq) wrote :

Huum, can't see how to test this atm, we'd need to mock UITK ;|

There should probably be a platform test for this instead.

 * Did you perform an exploratory manual test run of the code change and any related functionality?
Y
 * Did CI run pass? If not, please explain why.
Is running now, only failed test before is fixed now in trunk

review: Approve
Revision history for this message
Michał Sawicz (saviq) :
review: Needs Fixing
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
lp:~zeller-benjamin/unity8/scope-url updated
1188. By Benjamin Zeller

Move url-dispatcher file from common to unity package

Revision history for this message
Michał Sawicz (saviq) :
review: Approve
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)

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 2014-07-23 06:54:10 +0000
3+++ data/CMakeLists.txt 2014-08-27 08:03:23 +0000
4@@ -8,3 +8,6 @@
5 ${CMAKE_CURRENT_BINARY_DIR}/${DASH_APP}.desktop
6 DESTINATION ${CMAKE_INSTALL_DATADIR}/applications
7 )
8+
9+# install url dispatcher files
10+install(FILES unity8-dash.url-dispatcher DESTINATION ${CMAKE_INSTALL_DATADIR}/url-dispatcher/urls)
11
12=== modified file 'data/unity8-dash.conf'
13--- data/unity8-dash.conf 2014-08-06 08:17:31 +0000
14+++ data/unity8-dash.conf 2014-08-27 08:03:23 +0000
15@@ -10,6 +10,8 @@
16
17 respawn
18
19+env APP_ID=unity8-dash
20+
21 pre-start script
22 if [ -z "$UNITY_SCOPES_LIST" ]; then
23 # FIXME: remove once we have this in dconf
24
25=== added file 'data/unity8-dash.url-dispatcher'
26--- data/unity8-dash.url-dispatcher 1970-01-01 00:00:00 +0000
27+++ data/unity8-dash.url-dispatcher 2014-08-27 08:03:23 +0000
28@@ -0,0 +1,6 @@
29+[
30+ {
31+ "protocol": "scope"
32+ }
33+]
34+
35
36=== modified file 'debian/unity8.install'
37--- debian/unity8.install 2014-07-23 16:25:19 +0000
38+++ debian/unity8.install 2014-08-27 08:03:23 +0000
39@@ -10,3 +10,4 @@
40 usr/share/unity8/Panel
41 usr/share/unity8/Shell.qml
42 usr/share/unity8/Stages
43+usr/share/url-dispatcher/urls/unity8-dash.url-dispatcher
44
45=== modified file 'qml/Dash/DashContent.qml'
46--- qml/Dash/DashContent.qml 2014-08-08 08:47:36 +0000
47+++ qml/Dash/DashContent.qml 2014-08-27 08:03:23 +0000
48@@ -52,6 +52,11 @@
49 }
50 }
51
52+ Connections {
53+ target: UriHandler
54+ onOpened: dashContentList.currentItem.theScope.performQuery(uris[0])
55+ }
56+
57 function setCurrentScopeAtIndex(index, animate, reset) {
58 // if the scopes haven't loaded yet, then wait until they are.
59 if (!scopes.loaded) {

Subscribers

People subscribed via source and target branches