aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2017-05-23 10:57:36 +0200
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2017-05-23 10:57:36 +0200
commit794b686759521d6cb5a3c3679e4eca16fc6c86f7 (patch)
treeda009cb53be6cbfccd46eeab15629a3519fc9128
parent63d9a2f65fc576b03181b8c2aecc1f6775524d8b (diff)
downloadarctica-greeter-794b686759521d6cb5a3c3679e4eca16fc6c86f7.tar.gz
arctica-greeter-794b686759521d6cb5a3c3679e4eca16fc6c86f7.tar.bz2
arctica-greeter-794b686759521d6cb5a3c3679e4eca16fc6c86f7.zip
src/arctica-greeter.vala: Enable nm-applet again, launch with --indicators option and let's hope the system has nm-applet with indicators support compiled-in.
-rw-r--r--src/arctica-greeter.vala38
1 files changed, 19 insertions, 19 deletions
diff --git a/src/arctica-greeter.vala b/src/arctica-greeter.vala
index a98f25f..adbe582 100644
--- a/src/arctica-greeter.vala
+++ b/src/arctica-greeter.vala
@@ -724,25 +724,25 @@ public class ArcticaGreeter
}
}
-// /* Make nm-applet hide items the user does not have permissions to interact with */
-// Environment.set_variable ("NM_APPLET_HIDE_POLICY_ITEMS", "1", true);
-//
-// try
-// {
-// string[] argv;
-//
-// Shell.parse_argv ("nm-applet", out argv);
-// Process.spawn_async (null,
-// argv,
-// null,
-// SpawnFlags.SEARCH_PATH,
-// null,
-// out nmapplet_pid);
-// }
-// catch (Error e)
-// {
-// warning ("Error starting the Network Manager Applet: %s", e.message);
-// }
+ /* Make nm-applet hide items the user does not have permissions to interact with */
+ Environment.set_variable ("NM_APPLET_HIDE_POLICY_ITEMS", "1", true);
+
+ try
+ {
+ string[] argv;
+
+ Shell.parse_argv ("nm-applet --indicators", out argv);
+ Process.spawn_async (null,
+ argv,
+ null,
+ SpawnFlags.SEARCH_PATH,
+ null,
+ out nmapplet_pid);
+ }
+ catch (Error e)
+ {
+ warning ("Error starting the Network Manager Applet: %s", e.message);
+ }
}
else