diff --git a/backends/skype/main.cpp b/backends/skype/main.cpp index 0e849f4c..54e7025e 100644 --- a/backends/skype/main.cpp +++ b/backends/skype/main.cpp @@ -434,7 +434,7 @@ void Skype::login() { char *db = (char *) malloc(db_path.size() + 1); strcpy(db, db_path.c_str()); LOG4CXX_INFO(logger, m_username << ": Spawning new Skype instance dbpath=" << db); - gchar* argv[6] = {"skype", "--disable-cleanlooks", "--pipelogin", "--dbpath", db, 0}; + gchar* argv[8] = {"skype", "--enable-dbus", "--use-session-dbus", "--disable-cleanlooks", "--pipelogin", "--dbpath", db, 0}; int fd; g_spawn_async_with_pipes(NULL, @@ -608,8 +608,10 @@ std::string Skype::send_command(const std::string &message) { { LOG4CXX_INFO(logger, m_username << ": DBUS Error: " << error->message); g_error_free(error); + return ""; } else { LOG4CXX_INFO(logger, m_username << ": DBUS no response"); + return ""; } }