diff options
| author | Andrea Azzarone <azzaronea@gmail.com> | 2017-01-04 18:38:14 +0100 |
|---|---|---|
| committer | Andrea Azzarone <azzaronea@gmail.com> | 2017-01-04 18:38:14 +0100 |
| commit | c43c75609ecc28aadfee4d5ef49cf657b9c5fa4a (patch) | |
| tree | f0d00a93f74e6462cfefd9f6a8517e2e855500ff | |
| parent | ce9e498d2c93919e4d2da4931fad66317357fb51 (diff) | |
Minor changes.
(bzr r4213.2.3)
| -rw-r--r-- | UnityCore/GnomeSessionManager.cpp | 7 | ||||
| -rw-r--r-- | plugins/unityshell/src/unityshell.cpp | 1 | ||||
| -rw-r--r-- | plugins/unityshell/src/unityshell.h | 2 |
3 files changed, 3 insertions, 7 deletions
diff --git a/UnityCore/GnomeSessionManager.cpp b/UnityCore/GnomeSessionManager.cpp index d913da58b..1fc9981bc 100644 --- a/UnityCore/GnomeSessionManager.cpp +++ b/UnityCore/GnomeSessionManager.cpp @@ -588,17 +588,12 @@ bool GnomeManager::Impl::IsUserInGroup(std::string const& user_name, std::string bool GnomeManager::Impl::AutomaticLogin() { - auto proxy = std::make_shared<glib::DBusProxy>("org.freedesktop.Accounts", - "/org/freedesktop/Accounts", - "org.freedesktop.Accounts", - G_BUS_TYPE_SYSTEM); - glib::Error error; glib::Object<GDBusConnection> bus(g_bus_get_sync(G_BUS_TYPE_SYSTEM, nullptr, &error)); if (error) { - LOG_ERROR(logger) << "Impossible to get the system bus, to know if auto-login is enabled: " << error; + LOG_ERROR(logger) << "Impossible to get the system bus to know if auto-login is enabled: " << error; return false; } diff --git a/plugins/unityshell/src/unityshell.cpp b/plugins/unityshell/src/unityshell.cpp index c08d52402..015d48d49 100644 --- a/plugins/unityshell/src/unityshell.cpp +++ b/plugins/unityshell/src/unityshell.cpp @@ -27,6 +27,7 @@ #include <UnityCore/DBusIndicators.h> #include <UnityCore/DesktopUtilities.h> +#include <UnityCore/GnomeSessionManager.h> #include <UnityCore/ScopeProxyInterface.h> #include "CompizUtils.h" diff --git a/plugins/unityshell/src/unityshell.h b/plugins/unityshell/src/unityshell.h index a1b9704c7..ae73acbe2 100644 --- a/plugins/unityshell/src/unityshell.h +++ b/plugins/unityshell/src/unityshell.h @@ -76,7 +76,7 @@ #include "UnityShowdesktopHandler.h" #include "ThumbnailGenerator.h" #include "MenuManager.h" -#include "UnityCore/GnomeSessionManager.h" +#include "UnityCore/SessionManager.h" #include "compizminimizedwindowhandler.h" #include "BGHash.h" |
