rpms/kerneloops/devel kerneloops-0.12-dbus-service-activate.patch, NONE, 1.1 kerneloops.service, NONE, 1.1

Chuck Ebbert cebbert at fedoraproject.org
Tue Mar 3 20:51:50 UTC 2009


Author: cebbert

Update of /cvs/pkgs/rpms/kerneloops/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv24997

Added Files:
	kerneloops-0.12-dbus-service-activate.patch kerneloops.service 
Log Message:
add missing files

kerneloops-0.12-dbus-service-activate.patch:

--- NEW FILE kerneloops-0.12-dbus-service-activate.patch ---
diff -up kerneloops-0.12/kerneloops-applet.c.old kerneloops-0.12/kerneloops-applet.c
--- kerneloops-0.12/kerneloops-applet.c.old	2009-01-11 11:26:51.000000000 -0500
+++ kerneloops-0.12/kerneloops-applet.c	2009-01-11 12:08:49.000000000 -0500
@@ -440,6 +440,7 @@ static void read_config(void)
 int main(int argc, char *argv[])
 {
 	DBusError error;
+	u_int32_t result;
 
 	/* Initialize translation stuff */
 	setlocale(LC_ALL, "");
@@ -478,6 +479,10 @@ int main(int argc, char *argv[])
 	/* by default, don't show our icon */
 	gtk_status_icon_set_visible(statusicon, FALSE);
 
+	/* start the service */
+	if (dbus_bus_start_service_by_name(bus, "org.kerneloops.submit", 0, &result, &error) == FALSE) {
+		dbus_error_init(&error);
+	}
 	/* set the dbus message to listen for */
 	dbus_bus_add_match(bus, "type='signal',interface='org.kerneloops.submit.permission'", &error);
 	dbus_bus_add_match(bus, "type='signal',interface='org.kerneloops.submit.sent'", &error);


--- NEW FILE kerneloops.service ---
[D-BUS Service]
Name=org.kerneloops.submit
Exec=/usr/sbin/kerneloops --nodaemon
User=root




More information about the fedora-extras-commits mailing list