aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2017-05-17 10:20:59 +0200
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2017-05-17 10:20:59 +0200
commit0cddbb48d793d1f68ed5062ad178025100ab5ab5 (patch)
tree448438ca450ca781fb9d81063a5f9344ec0fc574
parent237d6304de6211646d20581c192f9da969325e25 (diff)
downloadarctica-greeter-0cddbb48d793d1f68ed5062ad178025100ab5ab5.tar.gz
arctica-greeter-0cddbb48d793d1f68ed5062ad178025100ab5ab5.tar.bz2
arctica-greeter-0cddbb48d793d1f68ed5062ad178025100ab5ab5.zip
indicator support: Launch ayatana-indicator-session service via Arctica Greeter.
-rw-r--r--src/arctica-greeter.vala33
1 files changed, 33 insertions, 0 deletions
diff --git a/src/arctica-greeter.vala b/src/arctica-greeter.vala
index 314f35f..f74c5cb 100644
--- a/src/arctica-greeter.vala
+++ b/src/arctica-greeter.vala
@@ -694,6 +694,23 @@ public class ArcticaGreeter
{
warning ("Error starting Ayatana Indicators Power Service: %s", e.message);
}
+ try
+ {
+ string[] argv;
+
+ Shell.parse_argv ("systemctl --user start ayatana-indicator-session", out argv);
+ Process.spawn_async (null,
+ argv,
+ null,
+ SpawnFlags.SEARCH_PATH,
+ null,
+ out dummy_pid);
+ }
+ catch (Error e)
+ {
+ warning ("Error starting Ayatana Indicators Session Service: %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);
@@ -758,6 +775,22 @@ public class ArcticaGreeter
{
warning ("Error stopping Ayatana Indicators Power Service: %s", e.message);
}
+ try
+ {
+ string[] argv;
+
+ Shell.parse_argv ("systemctl --user stop ayatana-indicator-session", out argv);
+ Process.spawn_async (null,
+ argv,
+ null,
+ SpawnFlags.SEARCH_PATH,
+ null,
+ out dummy_pid);
+ }
+ catch (Error e)
+ {
+ warning ("Error stopping Ayatana Indicators Session Service: %s", e.message);
+ }
}
if (atspi_pid != 0)