Merge lp:~seb128/ubuntu-system-settings/location-desktop-usr into lp:ubuntu-system-settings

Proposed by Sebastien Bacher
Status: Merged
Approved by: Ken VanDine
Approved revision: 1539
Merged at revision: 1542
Proposed branch: lp:~seb128/ubuntu-system-settings/location-desktop-usr
Merge into: lp:ubuntu-system-settings
Diff against target: 16 lines (+6/-0)
1 file modified
plugins/security-privacy/trust-store-model.cpp (+6/-0)
To merge this branch: bzr merge lp:~seb128/ubuntu-system-settings/location-desktop-usr
Reviewer Review Type Date Requested Status
PS Jenkins bot continuous-integration Needs Fixing
Olivier Tilloy (community) Approve
Paweł Stołowski (community) Approve
Ubuntu Touch System Settings Pending
Review via email: mp+272711@code.launchpad.net

Commit message

[security-privacy] use the system location as well to look for trust store
items, that's needed at least for unity8-dash which is not
distributed as a click and doesn't a .local entry

Description of the change

[security-privacy] use the system location as well to look for trust store
items, that's needed at least for unity8-dash which is not
distributed as a click and doesn't a .local entry

To post a comment you must log in.
Revision history for this message
Paweł Stołowski (stolowski) wrote :

Doesn't compile, you need to declare usrDesktopFilename.

review: Needs Fixing
1539. By Sebastien Bacher

correctly define the variable

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Paweł Stołowski (stolowski) wrote :

Yeah, works and looks fine. +1

review: Approve
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Olivier Tilloy (osomon) wrote :

And bonus points for fixing bug #1501428.

review: Approve
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'plugins/security-privacy/trust-store-model.cpp'
2--- plugins/security-privacy/trust-store-model.cpp 2015-03-16 13:51:36 +0000
3+++ plugins/security-privacy/trust-store-model.cpp 2015-09-29 11:40:07 +0000
4@@ -102,6 +102,12 @@
5 }
6 }
7
8+ /* try system location as well, that's at least needed for unity8-dash
9+ * which is not a click (yet) and doesn't have a .local entry */
10+ QString usrDesktopFilename(QString("/usr/share/applications/%1.desktop").arg(id));
11+ if (QFile(usrDesktopFilename).exists())
12+ return usrDesktopFilename;
13+
14 qWarning() << "No desktop file found for app id: " << id;
15 return QString();
16 }

Subscribers

People subscribed via source and target branches