From 2e51143de7ebdf71a19818ea613e3c37c1132c39 Mon Sep 17 00:00:00 2001 From: Zdenek Prikryl Date: Tue, 11 Aug 2009 18:36:21 +0200 Subject: for correct plugin's settings we need to know an user --- lib/CommLayer/CommLayerServerDBus.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'lib/CommLayer/CommLayerServerDBus.cpp') diff --git a/lib/CommLayer/CommLayerServerDBus.cpp b/lib/CommLayer/CommLayerServerDBus.cpp index d2b6d4d..4b6c99b 100644 --- a/lib/CommLayer/CommLayerServerDBus.cpp +++ b/lib/CommLayer/CommLayerServerDBus.cpp @@ -22,7 +22,7 @@ CCommLayerServerDBus::CCommLayerServerDBus() } catch(DBus::Error err) { - throw CABRTException(EXCEP_FATAL, std::string(__func__) + + throw CABRTException(EXCEP_FATAL, std::string(__func__) + "\nPlease check if:\n" + " * abrt is being run with root permissions\n" + " * you have reloaded the dbus\n"+ @@ -116,9 +116,10 @@ vector_map_string_string_t CCommLayerServerDBus::GetPluginsInfo() return plugins_info; } -map_plugin_settings_t CCommLayerServerDBus::GetPluginSettings(const std::string& pName) +map_plugin_settings_t CCommLayerServerDBus::GetPluginSettings(const std::string& pName, const std::string& pSender) { - return m_pObserver->GetPluginSettings(pName); + unsigned long unix_uid = m_pConn->sender_unix_uid(pSender.c_str()); + return m_pObserver->GetPluginSettings(pName, to_string(unix_uid)); } -- cgit