Merge lp:~rsalveti/unity-mir/removing_armhf_hardcoded_path_QtWebProcess into lp:unity-mir

Proposed by Ricardo Salveti
Status: Merged
Approved by: Gerry Boland
Approved revision: 198
Merged at revision: 202
Proposed branch: lp:~rsalveti/unity-mir/removing_armhf_hardcoded_path_QtWebProcess
Merge into: lp:unity-mir
Diff against target: 39 lines (+6/-1)
3 files modified
src/modules/Unity/Application/application_manager.cpp (+1/-1)
src/modules/Unity/Application/proc_info.cpp (+4/-0)
src/modules/Unity/Application/proc_info.h (+1/-0)
To merge this branch: bzr merge lp:~rsalveti/unity-mir/removing_armhf_hardcoded_path_QtWebProcess
Reviewer Review Type Date Requested Status
Gerry Boland (community) Approve
PS Jenkins bot (community) continuous-integration Approve
Ricardo Mendoza Pending
Review via email: mp+210528@code.launchpad.net

Commit message

Using str.contains to find out if the cmdline is from a QtWebProcess process

Description of the change

Using str.contains to find out if the cmdline is from a QtWebProcess process

And remove the hardcoded armhf library path (usr/lib/arm-linux-gnueabihf).

To post a comment you must log in.
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
Revision history for this message
Gerry Boland (gerboland) wrote :

works for me, x86 support I suppose

I've to ask you to fill out this checklist before I can top-approve:
https://wiki.ubuntu.com/Process/Merges/Checklists/Unity-Mir

 * Did you perform an exploratory manual test run of the code change and any related functionality?
Yes, all good

 * Did CI run pass? If not, please explain why.
Was ok

review: Approve
Revision history for this message
Ricardo Salveti (rsalveti) wrote :

 * Are there any related MPs required for this MP to build/function as expected? Please list.

No.

 * Did you perform an exploratory manual test run of your code change and any related functionality?

Yes.

 * If you changed the packaging (debian), did you subscribe the ubuntu-unity team to this MP?

Not affecting packaging.

Revision history for this message
Ricardo Salveti (rsalveti) wrote :

> works for me, x86 support I suppose

Yes, so I can drop another custom package from my x86 ppa :-)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'src/modules/Unity/Application/application_manager.cpp'
2--- src/modules/Unity/Application/application_manager.cpp 2014-03-11 14:51:12 +0000
3+++ src/modules/Unity/Application/application_manager.cpp 2014-03-12 03:12:50 +0000
4@@ -537,7 +537,7 @@
5 return;
6 }
7
8- if (info->startsWith("maliit-server") || info->startsWith("/usr/lib/arm-linux-gnueabihf/qt5/libexec/QtWebProcess")
9+ if (info->startsWith("maliit-server") || info->contains("qt5/libexec/QtWebProcess")
10 || info->startsWith("/usr/bin/signon-ui")) {
11 authorized = true;
12 m_fenceNext = true;
13
14=== modified file 'src/modules/Unity/Application/proc_info.cpp'
15--- src/modules/Unity/Application/proc_info.cpp 2014-02-28 16:51:31 +0000
16+++ src/modules/Unity/Application/proc_info.cpp 2014-03-12 03:12:50 +0000
17@@ -41,6 +41,10 @@
18 return m_command.startsWith(prefix);
19 }
20
21+bool ProcInfo::CommandLine::contains(char const* prefix) const {
22+ return m_command.contains(prefix);
23+}
24+
25 boost::optional<QString> ProcInfo::CommandLine::getParameter(const char* name) const {
26 QString pattern = QRegularExpression::escape(name) + "(\\S+)";
27 QRegularExpression regExp(pattern);
28
29=== modified file 'src/modules/Unity/Application/proc_info.h'
30--- src/modules/Unity/Application/proc_info.h 2014-02-28 16:51:31 +0000
31+++ src/modules/Unity/Application/proc_info.h 2014-03-12 03:12:50 +0000
32@@ -40,6 +40,7 @@
33 QByteArray m_command;
34
35 bool startsWith(const char* prefix) const;
36+ bool contains(const char* prefix) const;
37 boost::optional<QString> getParameter(const char* name) const;
38 QStringList asStringList() const;
39 };

Subscribers

People subscribed via source and target branches