diff options
author | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2017-05-17 10:20:59 +0200 |
---|---|---|
committer | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2017-05-17 10:20:59 +0200 |
commit | 0cddbb48d793d1f68ed5062ad178025100ab5ab5 (patch) | |
tree | 448438ca450ca781fb9d81063a5f9344ec0fc574 | |
parent | 237d6304de6211646d20581c192f9da969325e25 (diff) | |
download | arctica-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.vala | 33 |
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) |