Merge lp:~abreu-alexandre/ubuntu-html5-theme/fix-applicationname into lp:ubuntu-html5-theme

Proposed by Alexandre Abreu
Status: Merged
Approved by: Alexandre Abreu
Approved revision: 115
Merged at revision: 114
Proposed branch: lp:~abreu-alexandre/ubuntu-html5-theme/fix-applicationname
Merge into: lp:ubuntu-html5-theme
Diff against target: 17 lines (+7/-0)
1 file modified
src/ubuntu-html5-app-launcher/main.cpp (+7/-0)
To merge this branch: bzr merge lp:~abreu-alexandre/ubuntu-html5-theme/fix-applicationname
Reviewer Review Type Date Requested Status
PS Jenkins bot continuous-integration Approve
David Barth Approve
Review via email: mp+204264@code.launchpad.net

Commit message

Set the applicationName according to the potential APP_ID to ensure a smooth confinment of application assets.

Description of the change

Set the applicationName according to the potential APP_ID to ensure a smooth confinment of application assets.

To post a comment you must log in.
115. By Alexandre Abreu

Add APP_ID & set application name accordingly

Revision history for this message
David Barth (dbarth) wrote :

Works well, approved

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 'src/ubuntu-html5-app-launcher/main.cpp'
2--- src/ubuntu-html5-app-launcher/main.cpp 2014-01-28 01:20:38 +0000
3+++ src/ubuntu-html5-app-launcher/main.cpp 2014-01-31 15:29:12 +0000
4@@ -142,6 +142,13 @@
5 return EXIT_FAILURE;
6 }
7
8+ // Ensure that application-specific data is written where it ought to.
9+ if (qgetenv("APP_ID").data() != NULL)
10+ {
11+ QString appPkgName = qgetenv("APP_ID").split('_').first();
12+ QCoreApplication::setApplicationName(appPkgName);
13+ }
14+
15 setUpQmlImportPathIfNecessary();
16
17 QQuickView view;

Subscribers

People subscribed via source and target branches