on xenial help sign in
Add scope:// url support to the dash
commitab6fbeb727985658d79e3fec45bca6bd9fd15f53 authorBenjamin Zeller <benjamin.zeller@canonical.com> dateThu 21 Aug 2014, 15:12 (12 years ago) parent3e0d35c
3 files changed+14
data/CMakeLists.txt+3 data/unity8-dash.url-dispatcher+6 qml/Dash/DashContent.qml+5
data/CMakeLists.txt+3
@@ -8,3 +8,6 @@ install(FILES
88 ${CMAKE_CURRENT_BINARY_DIR}/${DASH_APP}.desktop
99 DESTINATION ${CMAKE_INSTALL_DATADIR}/applications
1010 )
11+
12+# install url dispatcher files
13+install(FILES unity8-dash.url-dispatcher DESTINATION ${CMAKE_INSTALL_DATADIR}/url-dispatcher/urls)
data/unity8-dash.url-dispatchernew file+6
@@ -0,0 +1,6 @@
1+[
2+ {
3+ "protocol": "scope"
4+ }
5+]
6+
qml/Dash/DashContent.qml+5
@@ -52,6 +52,11 @@ Item {
5252 }
5353 }
5454
55+ Connections {
56+ target: UriHandler
57+ onOpened: dashContentList.currentItem.scope.performQuery(uris[0])
58+ }
59+
5560 function setCurrentScopeAtIndex(index, animate, reset) {
5661 // if the scopes haven't loaded yet, then wait until they are.
5762 if (!scopes.loaded) {