Merge lp:~ted/ubuntu-clock-app/url-dispatcher into lp:ubuntu-clock-app/saucy

Proposed by Ted Gould
Status: Merged
Approved by: Nekhelesh Ramananthan
Approved revision: 298
Merged at revision: 293
Proposed branch: lp:~ted/ubuntu-clock-app/url-dispatcher
Merge into: lp:ubuntu-clock-app/saucy
Diff against target: 49 lines (+12/-1)
4 files modified
debian/ubuntu-clock-app.install (+1/-0)
manifest.json (+2/-1)
ubuntu-clock-app.qmlproject (+4/-0)
ubuntu-clock-app.url-dispatcher (+5/-0)
To merge this branch: bzr merge lp:~ted/ubuntu-clock-app/url-dispatcher
Reviewer Review Type Date Requested Status
Ubuntu Phone Apps Jenkins Bot continuous-integration Approve
Nekhelesh Ramananthan Approve
Review via email: mp+201536@code.launchpad.net

Commit message

Add URL Dispatcher config file

Description of the change

URL Dispatcher Configuration file to register the alarm:// URL.

This requires an unmerged version of URL dispatcher but should be harmless to merge at anytime.

To post a comment you must log in.
Revision history for this message
Nekhelesh Ramananthan (nik90) wrote :

Hey Ted, I trust your judgement on this since I am not really sure as to what files are required for the URL dispatcher. I am just curious as to why you did not add this file to debian install file? Is this not required on the desktop?

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

Oh, I didn't know that clock was built into a .deb anywhere? Isn't it just shipped as a .click package?

Revision history for this message
Nekhelesh Ramananthan (nik90) wrote :

On the phone it is distributed as a click package. While for testing purposes, it is built and distributed via the Core Apps PPA as a deb package.

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

I know how to add it to the Debian packaging, but it doesn't seem to be added to the project files. Not sure how to add it to the qmlproject file. Do you know how to do that?

Revision history for this message
Nekhelesh Ramananthan (nik90) wrote :

Sorry, I am not sure about that. I will ask michael or david to take a look at this.

Revision history for this message
David Planella (dpm) wrote :

You can add it to the Qt Creator project by adding something like this to the .qmlproject file:

    Files {
        filter: "*.url-dispatcher"
    }

You can have a look at an example of the syntax on the current .qmlfile http://bazaar.launchpad.net/~ubuntu-clock-dev/ubuntu-clock-app/trunk/view/head:/ubuntu-clock-app.qmlproject

This will make the file show up in Qt Creator when you open the project.

I would still suggest to add it to the .deb package by reviving r293 to make sure the PPA is in sync with the .click package (some of us have got the packages from the PPA installed on the desktop to test how well core apps work on the bigger form factor).

As per having it added to the click package, I believe it should happen automatically, but to be sure I'd ping sergiusens, as he's creating the .click packages for us.

Revision history for this message
Nekhelesh Ramananthan (nik90) wrote :

Just a note, here is michael hall's reply on IRC,

 nik90: I don't think we need that in the debian packages, since the desktop doesn't provide the alarm service anyway and debian packaging doesn't provide the click hooks that appear to be used to register with url-dispatcher

So should we worry about including the .url-dispatcher file in the debian control or .qmlproject file?

297. By Ted Gould

Add url dispatcher to the project file

298. By Ted Gould

Adding the URL dispatcher to the install

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

On Tue, 2014-01-14 at 17:47 +0000, David Planella wrote:

> You can add it to the Qt Creator project by adding something like this
> to the .qmlproject file:

Cool, that works.

> I would still suggest to add it to the .deb package by reviving r293
> to make sure the PPA is in sync with the .click package (some of us
> have got the packages from the PPA installed on the desktop to test
> how well core apps work on the bigger form factor).

Yup. Added.

> As per having it added to the click package, I believe it should
> happen automatically, but to be sure I'd ping sergiusens, as he's
> creating the .click packages for us.

When I build a click package it is there. So WFM :-)

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

On Tue, 2014-01-14 at 17:53 +0000, Nekhelesh Ramananthan wrote:

> nik90: I don't think we need that in the debian packages, since the
> desktop doesn't provide the alarm service anyway and debian packaging
> doesn't provide the click hooks that appear to be used to register
> with url-dispatcher
>
> So should we worry about including the .url-dispatcher file in the
> debian control or .qmlproject file?

It uses a click hook from click packages but a file location when
dealing with debs. It does both as we can't just rely on one because
things like webbrowser aren't migrated at all.

Revision history for this message
Nekhelesh Ramananthan (nik90) wrote :

7 +ubuntu-clock-app.url-dispatcher usr/share/url-dispatcher/urls/

Is the destination directory correct? On my 13.10 system, I do not have the url-dispatcher folder in /usr/share. I only see a liburl-dispatcher1 folder.

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

On Tue, 2014-01-14 at 20:53 +0000, Nekhelesh Ramananthan wrote:

> Is the destination directory correct? On my 13.10 system, I do not
> have the url-dispatcher folder in �usr�share. I only see a
> liburl-dispatcher1 folder.

Yup. You don't have an apps that have registered URLs with
url-dispatcher on your system today. That'll change :-)

Revision history for this message
Nekhelesh Ramananthan (nik90) wrote :

> On Tue, 2014-01-14 at 20:53 +0000, Nekhelesh Ramananthan wrote:
>
> > Is the destination directory correct? On my 13.10 system, I do not
> > have the url-dispatcher folder in �usr�share. I only see a
> > liburl-dispatcher1 folder.
>
>
> Yup. You don't have an apps that have registered URLs with
> url-dispatcher on your system today. That'll change :-)

In that case, I think the MP looks good. Approving.

review: Approve
Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) :
review: Approve (continuous-integration)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'debian/ubuntu-clock-app.install'
2--- debian/ubuntu-clock-app.install 2013-04-11 20:19:21 +0000
3+++ debian/ubuntu-clock-app.install 2014-01-14 20:27:17 +0000
4@@ -1,5 +1,6 @@
5 ubuntu-clock-app usr/bin/
6 ubuntu-clock-app.desktop usr/share/applications/
7+ubuntu-clock-app.url-dispatcher usr/share/url-dispatcher/urls/
8 *.qml usr/share/ubuntu-clock-app/
9 *.png usr/share/ubuntu-clock-app/
10 alarm usr/share/ubuntu-clock-app/
11
12=== modified file 'manifest.json'
13--- manifest.json 2014-01-13 12:14:17 +0000
14+++ manifest.json 2014-01-14 20:27:17 +0000
15@@ -4,7 +4,8 @@
16 "hooks": {
17 "clock": {
18 "apparmor": "apparmor/clock.json",
19- "desktop": "ubuntu-clock-app.desktop"
20+ "desktop": "ubuntu-clock-app.desktop",
21+ "urls": "ubuntu-clock-app.url-dispatcher"
22 }
23 },
24 "icon": "clock64.png",
25
26=== modified file 'ubuntu-clock-app.qmlproject'
27--- ubuntu-clock-app.qmlproject 2013-09-26 06:09:03 +0000
28+++ ubuntu-clock-app.qmlproject 2014-01-14 20:27:17 +0000
29@@ -19,6 +19,10 @@
30 Files {
31 filter: "README*"
32 }
33+ /* URL dispatcher configuration */
34+ Files {
35+ filter: "*.url-dispatcher"
36+ }
37 /* Shows the translation files and the .pro file used to generate the .pot template */
38 Files {
39 filter: "*.po*"
40
41=== added file 'ubuntu-clock-app.url-dispatcher'
42--- ubuntu-clock-app.url-dispatcher 1970-01-01 00:00:00 +0000
43+++ ubuntu-clock-app.url-dispatcher 2014-01-14 20:27:17 +0000
44@@ -0,0 +1,5 @@
45+[
46+ {
47+ "protocol": "alarm"
48+ }
49+]

Subscribers

People subscribed via source and target branches