aboutsummaryrefslogtreecommitdiff
path: root/src/backend-dbus
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2015-11-14 22:07:18 +0100
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2015-11-14 23:16:37 +0100
commit405a6969a0b2409d5f013e8d2845945b51146eb9 (patch)
tree367704fccc48a88d87eada791b6813f10b89fb0d /src/backend-dbus
parentc5211a8f81f6704558f4453c5eeb509f29672781 (diff)
downloadayatana-indicator-session-405a6969a0b2409d5f013e8d2845945b51146eb9.tar.gz
ayatana-indicator-session-405a6969a0b2409d5f013e8d2845945b51146eb9.tar.bz2
ayatana-indicator-session-405a6969a0b2409d5f013e8d2845945b51146eb9.zip
Fork from Ubuntu's indicator-session project.
Diffstat (limited to 'src/backend-dbus')
-rw-r--r--src/backend-dbus/CMakeLists.txt5
-rw-r--r--src/backend-dbus/actions.c19
-rw-r--r--src/backend-dbus/org.ayatana.indicators.webcredentials.xml (renamed from src/backend-dbus/com.canonical.indicators.webcredentials.xml)4
3 files changed, 10 insertions, 18 deletions
diff --git a/src/backend-dbus/CMakeLists.txt b/src/backend-dbus/CMakeLists.txt
index 1fb9d7c..a08851b 100644
--- a/src/backend-dbus/CMakeLists.txt
+++ b/src/backend-dbus/CMakeLists.txt
@@ -8,8 +8,8 @@ add_gdbus_codegen (BACKEND_GENERATED_SOURCES dbus-display-manager
${CMAKE_CURRENT_SOURCE_DIR}/org.freedesktop.DisplayManager.Seat.xml)
add_gdbus_codegen (BACKEND_GENERATED_SOURCES dbus-webcredentials
- com.canonical.indicators
- ${CMAKE_CURRENT_SOURCE_DIR}/com.canonical.indicators.webcredentials.xml)
+ org.ayatana.indicators
+ ${CMAKE_CURRENT_SOURCE_DIR}/org.ayatana.indicators.webcredentials.xml)
add_gdbus_codegen (BACKEND_GENERATED_SOURCES dbus-accounts
org.freedesktop
@@ -58,4 +58,3 @@ set_source_files_properties (${SOURCES}
include_directories (${CMAKE_CURRENT_BINARY_DIR} ${SERVICE_INCLUDE_DIRS})
add_library (backenddbus STATIC ${SOURCES} ${BACKEND_GENERATED_SOURCES})
-
diff --git a/src/backend-dbus/actions.c b/src/backend-dbus/actions.c
index 0fcdc08..a958731 100644
--- a/src/backend-dbus/actions.c
+++ b/src/backend-dbus/actions.c
@@ -19,7 +19,6 @@
#include <glib.h>
#include <glib/gi18n.h>
-#include <url-dispatcher.h>
#include "dbus-end-session-dialog.h"
#include "dbus-login1-manager.h"
@@ -863,9 +862,7 @@ have_unity_control_center (void)
static void
my_settings (IndicatorSessionActions * self G_GNUC_UNUSED)
{
- if (g_getenv ("MIR_SOCKET") != NULL)
- url_dispatch_send("settings:///system", NULL, NULL);
- else if (have_unity_control_center ())
+ if (have_unity_control_center ())
run_outside_app ("unity-control-center");
else
run_outside_app ("gnome-control-center");
@@ -874,9 +871,7 @@ my_settings (IndicatorSessionActions * self G_GNUC_UNUSED)
static void
my_online_accounts (IndicatorSessionActions * self G_GNUC_UNUSED)
{
- if (g_getenv ("MIR_SOCKET") != NULL)
- url_dispatch_send("settings:///system/online-accounts", NULL, NULL);
- else if (have_unity_control_center ())
+ if (have_unity_control_center ())
run_outside_app ("unity-control-center credentials");
else
run_outside_app ("gnome-control-center credentials");
@@ -885,9 +880,7 @@ my_online_accounts (IndicatorSessionActions * self G_GNUC_UNUSED)
static void
my_about (IndicatorSessionActions * self G_GNUC_UNUSED)
{
- if (g_getenv ("MIR_SOCKET") != NULL)
- url_dispatch_send("settings:///system/about", NULL, NULL);
- else if (have_unity_control_center ())
+ if (have_unity_control_center ())
run_outside_app ("unity-control-center info");
else
run_outside_app ("gnome-control-center info");
@@ -1091,7 +1084,7 @@ indicator_session_actions_dbus_init (IndicatorSessionActionsDbus * self)
G_CALLBACK(indicator_session_actions_notify_can_switch), self);
p->lockdown_settings = s;
- s = g_settings_new ("com.canonical.indicator.session");
+ s = g_settings_new ("org.ayatana.indicator.session");
g_signal_connect_swapped (s, "changed::suppress-logout-restart-shutdown",
G_CALLBACK(indicator_session_actions_notify_can_prompt), self);
g_signal_connect_swapped (s, "changed::suppress-logout-restart-shutdown",
@@ -1128,8 +1121,8 @@ indicator_session_actions_dbus_init (IndicatorSessionActionsDbus * self)
webcredentials_proxy_new_for_bus (G_BUS_TYPE_SESSION,
G_DBUS_PROXY_FLAGS_DO_NOT_AUTO_START,
- "com.canonical.indicators.webcredentials",
- "/com/canonical/indicators/webcredentials",
+ "org.ayatana.indicators.webcredentials",
+ "/org/ayatana/indicators/webcredentials",
p->cancellable,
on_webcredentials_proxy_ready,
self);
diff --git a/src/backend-dbus/com.canonical.indicators.webcredentials.xml b/src/backend-dbus/org.ayatana.indicators.webcredentials.xml
index d215081..d7c46b0 100644
--- a/src/backend-dbus/com.canonical.indicators.webcredentials.xml
+++ b/src/backend-dbus/org.ayatana.indicators.webcredentials.xml
@@ -1,6 +1,6 @@
<node>
<!--
- com.canonical.indicators.webcredentials:
+ org.ayatana.indicators.webcredentials:
@short_description: interface for handling login failures.
The service implementing this interface keeps track of login failures.
@@ -11,7 +11,7 @@
The ClearErrorStatus method can be called to clear the error indicator from
the system user menu.
-->
-<interface name="com.canonical.indicators.webcredentials">
+<interface name="org.ayatana.indicators.webcredentials">
<!--
ReportFailure:
@account-id: the libaccounts ID of the account which failed to login.