Merge lp:~lool/ubuntu-app-launch/desktop-file-hint-for-mir into lp:ubuntu-app-launch/13.10

Proposed by Loïc Minier
Status: Rejected
Rejected by: Ted Gould
Proposed branch: lp:~lool/ubuntu-app-launch/desktop-file-hint-for-mir
Merge into: lp:ubuntu-app-launch/13.10
Diff against target: 52 lines (+4/-16)
3 files modified
application-click.conf.in (+1/-7)
application-legacy.conf.in (+1/-7)
exec-line-exec.c (+2/-2)
To merge this branch: bzr merge lp:~lool/ubuntu-app-launch/desktop-file-hint-for-mir
Reviewer Review Type Date Requested Status
PS Jenkins bot (community) continuous-integration Approve
Indicator Applet Developers Pending
Review via email: mp+188210@code.launchpad.net

Commit message

Also pass --desktop_file_hint= in the Mir case; LP: #1232588.

Description of the change

Also pass --desktop_file_hint= in the Mir case; LP: #1232588.

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
Ted Gould (ted) wrote :

As per the discussion on the bug it doesn't seem this is needed. Marking as "Rejected" as we have no nicer option.

Unmerged revisions

69. By Loïc Minier

Also pass --desktop_file_hint= in the Mir case; LP: #1232588.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'application-click.conf.in'
2--- application-click.conf.in 2013-09-23 17:19:20 +0000
3+++ application-click.conf.in 2013-09-28 22:56:44 +0000
4@@ -15,13 +15,7 @@
5
6 apparmor switch ${APP_ID}
7
8-pre-start script
9- if pgrep -u system surfaceflinger ; then
10- initctl set-env USING_SURFACE_FLINGER=1
11- fi
12-
13- exec @pkglibexecdir@/click-exec
14-end script
15+pre-start exec @pkglibexecdir@/click-exec
16
17 # Remember, this is confined
18 exec @pkglibexecdir@/exec-line-exec
19
20=== modified file 'application-legacy.conf.in'
21--- application-legacy.conf.in 2013-09-23 17:19:20 +0000
22+++ application-legacy.conf.in 2013-09-28 22:56:44 +0000
23@@ -16,13 +16,7 @@
24 # This will be set to "unconfined" by desktop-exec if there is no confinement defined
25 apparmor switch $APP_EXEC_POLICY
26
27-pre-start script
28- if pgrep -u system surfaceflinger ; then
29- initctl set-env USING_SURFACE_FLINGER=1
30- fi
31-
32- exec @pkglibexecdir@/desktop-exec
33-end script
34+pre-start exec @pkglibexecdir@/desktop-exec
35
36 exec @pkglibexecdir@/exec-line-exec
37
38
39=== modified file 'exec-line-exec.c'
40--- exec-line-exec.c 2013-09-23 19:42:54 +0000
41+++ exec-line-exec.c 2013-09-28 22:56:44 +0000
42@@ -65,8 +65,8 @@
43 return 1;
44 }
45
46- /* Surface flinger check */
47- if (g_getenv("USING_SURFACE_FLINGER") != NULL && app_desktop != NULL) {
48+ /* --desktop_file_hint to identify a process as belonging to an app */
49+ if (app_desktop != NULL) {
50 gchar * sf = g_strdup_printf("--desktop_file_hint=%s", app_desktop);
51 g_array_append_val(newargv, sf);
52 }

Subscribers

People subscribed via source and target branches