Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=fun.git;a=commitdiff;h=24a051460a74c4cce6c6bef017da4c6fcfc696dc

commit 24a051460a74c4cce6c6bef017da4c6fcfc696dc
Author: Priyank <[EMAIL PROTECTED]>
Date:   Sat Nov 3 18:22:45 2007 +0530

forgot to rename service name in other files

diff --git a/fund.conf b/fund.conf
index 1bfeb25..dfa0ed7 100644
--- a/fund.conf
+++ b/fund.conf
@@ -3,18 +3,18 @@
"http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd";>
<busconfig>
<policy user="root">
-               <allow own="org.frugalware.UpdNotifier"/>
-               <allow send_destination="org.frugalware.UpdNotifier"/>
-               <allow send_interface="org.frugalware.UpdNotifier"/>
+               <allow own="org.frugalware.FWUpdateNotifier"/>
+               <allow send_destination="org.frugalware.FWUpdateNotifier"/>
+               <allow send_interface="org.frugalware.FWUpdateNotifier"/>
</policy>
<policy group="users">
-               <allow own="org.frugalware.UpdNotifier"/>
-               <allow send_destination="org.frugalware.UpdNotifier"/>
-               <allow send_interface="org.frugalware.UpdNotifier"/>
+               <allow own="org.frugalware.FWUpdateNotifier"/>
+               <allow send_destination="org.frugalware.FWUpdateNotifier"/>
+               <allow send_interface="org.frugalware.FWUpdateNotifier"/>
</policy>
<policy context="default">
-               <deny own="org.frugalware.UpdNotifier"/>
-               <deny send_destination="org.frugalware.UpdNotifier"/>
-               <deny send_interface="org.frugalware.UpdNotifier"/>
+               <deny own="org.frugalware.FWUpdateNotifier"/>
+               <deny send_destination="org.frugalware.FWUpdateNotifier"/>
+               <deny send_interface="org.frugalware.FWUpdateNotifier"/>
</policy>
</busconfig>
diff --git a/src/fun-dbus.c b/src/fun-dbus.c
index a11483e..e467793 100644
--- a/src/fun-dbus.c
+++ b/src/fun-dbus.c
@@ -52,9 +52,9 @@ fun_dbus_perform_service (guint service, gchar **package_list)
case PERFORM_UPDATE:
{
dbus_error_init (&error);
-                       message = dbus_message_new_method_call 
("org.frugalware.UpdNotifier",
-                                                               
"/org/frugalware/UpdNotifier",
-                                                               
"org.frugalware.UpdNotifier",
+                       message = dbus_message_new_method_call 
("org.frugalware.FWUpdateNotifier",
+                                                               
"/org/frugalware/FWUpdateNotifier",
+                                                               
"org.frugalware.FWUpdateNotifier",
"PerformUpdate");
reply = dbus_connection_send_with_reply_and_block (fun_conn, message, 
reply_timeout, &error);
if (dbus_error_is_set(&error))
@@ -80,9 +80,9 @@ fun_dbus_perform_service (guint service, gchar **package_list)
{
guint ret = 0;
dbus_error_init (&error);
-                       message = dbus_message_new_method_call 
("org.frugalware.UpdNotifier",
-                                                               
"/org/frugalware/UpdNotifier",
-                                                               
"org.frugalware.UpdNotifier",
+                       message = dbus_message_new_method_call 
("org.frugalware.FWUpdateNotifier",
+                                                               
"/org/frugalware/FWUpdateNotifier",
+                                                               
"org.frugalware.FWUpdateNotifier",
"TestService");
reply = dbus_connection_send_with_reply_and_block (fun_conn, message, 
reply_timeout, &error);
if (dbus_error_is_set(&error))
diff --git a/src/fund.c b/src/fund.c
index 07deca4..bf87fd6 100644
--- a/src/fund.c
+++ b/src/fund.c
@@ -66,7 +66,7 @@ void fund_init(FWUpdateNotifier *server) {
// Register the service name, the constant here are defined in 
dbus-glib-bindings.h
driver_proxy = dbus_g_proxy_new_for_name(server->connection, DBUS_SERVICE_DBUS, 
DBUS_PATH_DBUS, DBUS_INTERFACE_DBUS);

-       if (!org_freedesktop_DBus_request_name (driver_proxy, 
"org.frugalware.UpdNotifier", 0, &request_ret, &error)) {
+       if (!org_freedesktop_DBus_request_name (driver_proxy, 
"org.frugalware.FWUpdateNotifier", 0, &request_ret, &error)) {
g_warning("Unable to register service: %s", error->message);
g_error_free(error);
}
_______________________________________________
Frugalware-git mailing list
[email protected]
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to