Merge lp:~mterry/unity-greeter/no-gvfsd into lp:~robert-ancell/unity-greeter/trunk

Proposed by Michael Terry
Status: Merged
Merged at revision: 77
Proposed branch: lp:~mterry/unity-greeter/no-gvfsd
Merge into: lp:~robert-ancell/unity-greeter/trunk
Diff against target: 38 lines (+9/-4)
1 file modified
src/user-list.vala (+9/-4)
To merge this branch: bzr merge lp:~mterry/unity-greeter/no-gvfsd
Reviewer Review Type Date Requested Status
Robert Ancell Pending
Review via email: mp+72208@code.launchpad.net

Description of the change

Prevents gvfsd from being started in greeter session.

To post a comment you must log in.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'src/user-list.vala'
2--- src/user-list.vala 2011-08-08 10:21:25 +0000
3+++ src/user-list.vala 2011-08-19 15:53:33 +0000
4@@ -150,10 +150,9 @@
5 setup_indicators ();
6 }
7
8- async void setup_indicators ()
9+ async void greeter_set_env (string key, string val)
10 {
11- /* Set env var that will tell indicators to reduce functionality *.
12- GLib.Environment.set_variable ("INDICATOR_GREETER_MODE", "1", true);
13+ GLib.Environment.set_variable (key, val, true);
14
15 /* And also set it in the DBus activation environment so that any
16 * indicator services pick it up. */
17@@ -167,7 +166,7 @@
18 null);
19
20 var builder = new GLib.VariantBuilder (GLib.VariantType.ARRAY);
21- builder.add ("{ss}", "INDICATOR_GREETER_MODE", "1");
22+ builder.add ("{ss}", key, val);
23
24 yield proxy.call ("UpdateActivationEnvironment",
25 new GLib.Variant ("(a{ss})", builder),
26@@ -178,6 +177,12 @@
27 warning ("Could not get set environment for indicators: %s", e.message);
28 return;
29 }
30+ }
31+
32+ async void setup_indicators ()
33+ {
34+ greeter_set_env ("INDICATOR_GREETER_MODE", "1"); // reduced functionality
35+ greeter_set_env ("GIO_USE_VFS", "local"); // no gvfsd
36
37 load_indicator ("/usr/lib/indicators3/6/libsession.so");
38 load_indicator ("/usr/lib/indicators3/6/libdatetime.so");

Subscribers

People subscribed via source and target branches

to all changes: