Merge lp:~dobey/indicator-datetime/fix-app-names into lp:indicator-datetime

Proposed by dobey
Status: Merged
Approved by: Charles Kerr
Approved revision: 473
Merged at revision: 473
Proposed branch: lp:~dobey/indicator-datetime/fix-app-names
Merge into: lp:indicator-datetime
Diff against target: 38 lines (+3/-3)
3 files modified
src/actions-live.cpp (+1/-1)
src/notifications.cpp (+1/-1)
tests/test-live-actions.cpp (+1/-1)
To merge this branch: bzr merge lp:~dobey/indicator-datetime/fix-app-names
Reviewer Review Type Date Requested Status
Charles Kerr (community) Approve
unity-api-1-bot continuous-integration Approve
Review via email: mp+316174@code.launchpad.net

Commit message

Update app name usage to match snaps.

Description of the change

This updates the clock and calendar app names where they are used for opening the apps. However, there are cases where the apps may not open (clock snap is currently broken, missing url-dispatcher support for snaps, and an issue with repowerd on PCs).

The clock app starts to open, but fails to start due to the snap being broken.
The url-dispatcher support is not ready for snaps, so things that use calendar:/// URIs don't open.
The repowerd issue blocks notifications, so opening calendar from notification not currently possible.

To post a comment you must log in.
Revision history for this message
unity-api-1-bot (unity-api-1-bot) wrote :

PASSED: Continuous integration, rev:473
https://jenkins.canonical.com/unity-api-1/job/lp-indicator-datetime-ci/10/
Executed test runs:
    SUCCESS: https://jenkins.canonical.com/unity-api-1/job/build/1586
    SUCCESS: https://jenkins.canonical.com/unity-api-1/job/build-0-fetch/1593
    SUCCESS: https://jenkins.canonical.com/unity-api-1/job/build-2-binpkg/arch=amd64,release=xenial+overlay/1371
        deb: https://jenkins.canonical.com/unity-api-1/job/build-2-binpkg/arch=amd64,release=xenial+overlay/1371/artifact/output/*zip*/output.zip
    SUCCESS: https://jenkins.canonical.com/unity-api-1/job/build-2-binpkg/arch=amd64,release=zesty/1371
        deb: https://jenkins.canonical.com/unity-api-1/job/build-2-binpkg/arch=amd64,release=zesty/1371/artifact/output/*zip*/output.zip
    SUCCESS: https://jenkins.canonical.com/unity-api-1/job/build-2-binpkg/arch=armhf,release=xenial+overlay/1371
        deb: https://jenkins.canonical.com/unity-api-1/job/build-2-binpkg/arch=armhf,release=xenial+overlay/1371/artifact/output/*zip*/output.zip
    SUCCESS: https://jenkins.canonical.com/unity-api-1/job/build-2-binpkg/arch=armhf,release=zesty/1371
        deb: https://jenkins.canonical.com/unity-api-1/job/build-2-binpkg/arch=armhf,release=zesty/1371/artifact/output/*zip*/output.zip
    SUCCESS: https://jenkins.canonical.com/unity-api-1/job/build-2-binpkg/arch=i386,release=xenial+overlay/1371
        deb: https://jenkins.canonical.com/unity-api-1/job/build-2-binpkg/arch=i386,release=xenial+overlay/1371/artifact/output/*zip*/output.zip
    SUCCESS: https://jenkins.canonical.com/unity-api-1/job/build-2-binpkg/arch=i386,release=zesty/1371
        deb: https://jenkins.canonical.com/unity-api-1/job/build-2-binpkg/arch=i386,release=zesty/1371/artifact/output/*zip*/output.zip

Click here to trigger a rebuild:
https://jenkins.canonical.com/unity-api-1/job/lp-indicator-datetime-ci/10/rebuild

review: Approve (continuous-integration)
Revision history for this message
Charles Kerr (charlesk) wrote :

Meh. You're right, I don't like these hardcoded names either.

If you want to do further cleanup on this, it wouldn't hurt my feelings

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'src/actions-live.cpp'
--- src/actions-live.cpp 2016-05-14 02:07:10 +0000
+++ src/actions-live.cpp 2017-02-01 22:00:03 +0000
@@ -95,7 +95,7 @@
95{95{
96 switch(get_desktop()) {96 switch(get_desktop()) {
97 case LiveActions::UNITY8:97 case LiveActions::UNITY8:
98 dispatch_url("appid://com.ubuntu.clock/clock/current-user-version");98 dispatch_url("appid://ubuntu-clock-app/ubuntu-clock-app/current-user-version");
99 break;99 break;
100 case LiveActions::UNITY7:100 case LiveActions::UNITY7:
101 default:101 default:
102102
=== modified file 'src/notifications.cpp'
--- src/notifications.cpp 2016-09-21 22:07:33 +0000
+++ src/notifications.cpp 2017-02-01 22:00:03 +0000
@@ -462,7 +462,7 @@
462 static std::string calendar_app_id()462 static std::string calendar_app_id()
463 {463 {
464 auto registry = std::make_shared<ubuntu::app_launch::Registry>();464 auto registry = std::make_shared<ubuntu::app_launch::Registry>();
465 auto app_id = ubuntu::app_launch::AppID::discover(registry, "com.ubuntu.calendar");465 auto app_id = ubuntu::app_launch::AppID::discover(registry, "ubuntu-calendar-app");
466 if (!app_id.empty())466 if (!app_id.empty())
467 // Due the use of old API by messaging_menu we need append a extra ".desktop" to the app_id.467 // Due the use of old API by messaging_menu we need append a extra ".desktop" to the app_id.
468 return std::string(app_id) + ".desktop";468 return std::string(app_id) + ".desktop";
469469
=== modified file 'tests/test-live-actions.cpp'
--- tests/test-live-actions.cpp 2016-05-14 02:07:10 +0000
+++ tests/test-live-actions.cpp 2017-02-01 22:00:03 +0000
@@ -161,7 +161,7 @@
161161
162namespace162namespace
163{163{
164 const std::string clock_app_url = "appid://com.ubuntu.clock/clock/current-user-version";164 const std::string clock_app_url = "appid://ubuntu-clock-app/ubuntu-clock-app/current-user-version";
165}165}
166166
167TEST_F(TestLiveActionsFixture, PhoneOpenAlarmApp)167TEST_F(TestLiveActionsFixture, PhoneOpenAlarmApp)

Subscribers

People subscribed via source and target branches