Merge lp:~stolowski/unity-lens-applications/download-app-preview-on-lmb into lp:unity-lens-applications

Proposed by Paweł Stołowski
Status: Rejected
Rejected by: Michal Hruby
Proposed branch: lp:~stolowski/unity-lens-applications/download-app-preview-on-lmb
Merge into: lp:unity-lens-applications
Diff against target: 29 lines (+3/-5)
2 files modified
src/daemon.vala (+1/-5)
src/main.vala (+2/-0)
To merge this branch: bzr merge lp:~stolowski/unity-lens-applications/download-app-preview-on-lmb
Reviewer Review Type Date Requested Status
PS Jenkins bot (community) continuous-integration Needs Fixing
Michal Hruby Pending
Review via email: mp+122835@code.launchpad.net

Commit message

Request preview on activation of unity-install:// uris.

Description of the change

Request preview on activation of unity-install:// uris.

To post a comment you must log in.
296. By Paweł Stołowski

Set prgname of unity-applications-daemon.

Revision history for this message
Michal Hruby (mhr3) wrote :

Looking good, but dash doesn't behave well with this - the preview navigation is broken if standard activation returns a preview. Should be fixed in unity first.

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

Already fixed.

Unmerged revisions

296. By Paweł Stołowski

Set prgname of unity-applications-daemon.

295. By Paweł Stołowski

Request preview on activation of unity-install:// uris.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'src/daemon.vala'
2--- src/daemon.vala 2012-08-30 11:23:14 +0000
3+++ src/daemon.vala 2012-09-05 10:32:19 +0000
4@@ -1308,11 +1308,7 @@
5 string exec_or_dir = null;
6 if (uri.has_prefix ("unity-install://"))
7 {
8- unowned string pkg = uri.offset (16); // strip off "unity-install://" prefix
9- debug ("Installing: %s", pkg);
10- args = new string[2];
11- args[0] = "software-center";
12- args[1] = pkg;
13+ return new Unity.ActivationResponse(Unity.HandledType.SHOW_PREVIEW);
14 }
15 else if (uri.has_prefix ("unity-runner://"))
16 {
17
18=== modified file 'src/main.vala'
19--- src/main.vala 2011-10-04 13:02:38 +0000
20+++ src/main.vala 2012-09-05 10:32:19 +0000
21@@ -51,6 +51,8 @@
22
23 public static int main (string[] args)
24 {
25+ GLib.Environment.set_prgname ("unity-applications-daemon");
26+
27 /* Sort up locale to get translations but also sorting and
28 * punctuation right */
29 GLib.Intl.textdomain (Config.PACKAGE);

Subscribers

People subscribed via source and target branches