diff options
-rw-r--r-- | Utility/DBus.hs | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/Utility/DBus.hs b/Utility/DBus.hs index 5b0470301..108ef735b 100644 --- a/Utility/DBus.hs +++ b/Utility/DBus.hs @@ -22,8 +22,14 @@ type ServiceName = String listServiceNames :: Client -> IO [ServiceName] listServiceNames client = do - reply <- callDBus client "ListNames" [] - return $ fromMaybe [] $ fromVariant =<< headMaybe (methodReturnBody reply) + active <- do + reply <- callDBus client "ListNames" [] + return $ fromVariant =<< headMaybe (methodReturnBody reply) + activatable <- do + reply <- callDBus client "ListActivatableNames" [] + return $ fromVariant =<< headMaybe (methodReturnBody reply) + let service_names = fromMaybe [] active ++ fromMaybe [] activatable + return service_names callDBus :: Client -> MemberName -> [Variant] -> IO MethodReturn callDBus client name params = call_ client $ |