diff options
| -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" |
