From 0cddbb48d793d1f68ed5062ad178025100ab5ab5 Mon Sep 17 00:00:00 2001 From: Mike Gabriel Date: Wed, 17 May 2017 10:20:59 +0200 Subject: indicator support: Launch ayatana-indicator-session service via Arctica Greeter. --- src/arctica-greeter.vala | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) (limited to 'src') 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) -- cgit v1.2.3