Merge lp:~renatofilho/dialer-app/fix-snap-path into lp:dialer-app

Proposed by Renato Araujo Oliveira Filho
Status: Merged
Approved by: Gustavo Pichorim Boiko
Approved revision: 557
Merged at revision: 557
Proposed branch: lp:~renatofilho/dialer-app/fix-snap-path
Merge into: lp:dialer-app
Diff against target: 31 lines (+5/-2)
1 file modified
config.h.in (+5/-2)
To merge this branch: bzr merge lp:~renatofilho/dialer-app/fix-snap-path
Reviewer Review Type Date Requested Status
Gustavo Pichorim Boiko (community) Approve
system-apps-ci-bot continuous-integration Needs Fixing
Review via email: mp+311143@code.launchpad.net

Commit message

Append "SNAP" path into the base application path, when that var is set.

To post a comment you must log in.
Revision history for this message
system-apps-ci-bot (system-apps-ci-bot) wrote :

FAILED: Continuous integration, rev:557
https://jenkins.canonical.com/system-apps/job/lp-dialer-app-ci/28/
Executed test runs:
    FAILURE: https://jenkins.canonical.com/system-apps/job/build/1992/console
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-0-fetch/1995
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=amd64,release=vivid+overlay/1825
        deb: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=amd64,release=vivid+overlay/1825/artifact/output/*zip*/output.zip
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=amd64,release=xenial+overlay/1825
        deb: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=amd64,release=xenial+overlay/1825/artifact/output/*zip*/output.zip
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=amd64,release=zesty/1825
        deb: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=amd64,release=zesty/1825/artifact/output/*zip*/output.zip
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=armhf,release=vivid+overlay/1825
        deb: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=armhf,release=vivid+overlay/1825/artifact/output/*zip*/output.zip
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=armhf,release=xenial+overlay/1825/console
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=armhf,release=zesty/1825
        deb: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=armhf,release=zesty/1825/artifact/output/*zip*/output.zip
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=i386,release=vivid+overlay/1825
        deb: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=i386,release=vivid+overlay/1825/artifact/output/*zip*/output.zip
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=i386,release=xenial+overlay/1825
        deb: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=i386,release=xenial+overlay/1825/artifact/output/*zip*/output.zip
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=i386,release=zesty/1825
        deb: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=i386,release=zesty/1825/artifact/output/*zip*/output.zip

Click here to trigger a rebuild:
https://jenkins.canonical.com/system-apps/job/lp-dialer-app-ci/28/rebuild

review: Needs Fixing (continuous-integration)
Revision history for this message
Gustavo Pichorim Boiko (boiko) wrote :

Looks good!

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'config.h.in'
2--- config.h.in 2014-05-28 20:27:06 +0000
3+++ config.h.in 2016-11-17 13:04:41 +0000
4@@ -27,6 +27,7 @@
5 #include <QtDBus/QDBusReply>
6
7 #define I18N_DIRECTORY "@CMAKE_INSTALL_PREFIX@/share/locale"
8+#define SNAP_PATH "SNAP"
9
10 inline bool isRunningInstalled() {
11 static bool installed = (QCoreApplication::applicationDirPath() ==
12@@ -35,7 +36,9 @@
13 }
14
15 inline QString dialerAppDirectory() {
16- if (isRunningInstalled()) {
17+ if (qEnvironmentVariableIsSet(SNAP_PATH)) {
18+ return QString("%1/@CMAKE_INSTALL_PREFIX@/@DIALER_APP_DIR@/").arg(QString(qgetenv(SNAP_PATH)));
19+ } else if (isRunningInstalled()) {
20 return QString("@CMAKE_INSTALL_PREFIX@/@DIALER_APP_DIR@/");
21 } else {
22 return QString("@CMAKE_SOURCE_DIR@/src/qml/");
23@@ -43,7 +46,7 @@
24 }
25
26 inline QString ubuntuPhonePluginPath() {
27- if (isRunningInstalled()) {
28+ if (isRunningInstalled() || qEnvironmentVariableIsSet(SNAP_PATH)) {
29 return QString::null;
30 } else {
31 return QString("@CMAKE_SOURCE_DIR@/");

Subscribers

People subscribed via source and target branches