Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 590331
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T15:31:03+00:00 2026-05-13T15:31:03+00:00

I am attempting to send a signal out over the session message bus. I

  • 0

I am attempting to send a signal out over the session message bus. I am able to call methods fine using d-feet dbus debugger with no problem. Unfortunately d-feet does not allow you to connect to signals to debug those. In replacement I am using dbus-monitor "type='signal'" to see if anything is sent. So far this works except for anything that I send.

My assumption is that when one calls dbus_g_connection_register_g_object (connection, path, object); it registers all methods,properties, and signals located within your introspection xml file. This would appear to hold true because before I added them dbus would complain about the signals not existing.

I attempt to dispatch a signal using g_signal_emit_by_name(self,"application_identifier_changed","some new crazy aid",NULL); . This functions within the app itself, I can connect to the signal and it does trigger. However nothing appears within dbus monitor. I must be missing something simple.

Here are the files involved:
main.c

int
main (int argc, char *argv[])
{
guint   result;
GError* error = NULL;
GObject * obj = NULL;

gtk_init(&argc,&argv);

gchar* bus_name = g_strdup_printf("org.maskwa.PowerviewApplicationPresence_%d",getpid());

dbus = dbus_g_bus_get(DBUS_BUS_SESSION,&error);
if (NULL != error) {
    g_error("error establishing dbus connection %s",error->message);
    g_error_free(error);
    return 1;
}
    //dbus_connection_setup_with_g_main(dbus_g_connection_get_connection(dbus),NULL);

proxy = dbus_g_proxy_new_for_name(dbus,
    DBUS_SERVICE_DBUS, DBUS_PATH_DBUS, DBUS_INTERFACE_DBUS);

org_freedesktop_DBus_request_name(proxy,
            bus_name, 
            DBUS_NAME_FLAG_DO_NOT_QUEUE, &result, &error);

obj = g_object_new (POWERVIEW_TYPE_APPLICATION_PRESENCE, NULL);
dbus_g_connection_register_g_object (dbus, "/org/maskwa/powerview_application_presence", obj);

gtk_main();

if (NULL != bus_name) g_free(bus_name);
return 0;
}

powerview-application-presence.gob:

%headertop{

#include <dbus/dbus-glib.h>
#include "main.h"
%}

%{
#include "powerview-application-presence-glue.h"
%}

class Powerview:Application:Presence from G:Object {

class_init (class)
{
    dbus_g_object_type_install_info (POWERVIEW_TYPE_APPLICATION_PRESENCE,&dbus_glib_powerview_application_presence_object_info);
}

public void
get_application_identifier(self, gchar** OUT_aid, GError** error)
{
    g_print("%p      powerview_application_presence_get_application_identifier()\n",self);
    *OUT_aid = g_strdup("tld.domain.pong");
}

public void
get_display_name(self, gchar** OUT_display_name, GError** error)
{
    g_print("%p powerview_application_presence_get_display_name()\n",self);
    *OUT_display_name = g_strdup("Test Application");

    g_signal_emit_by_name(self,"application_identifier_changed","some new crazy aid",NULL);
}

signal last NONE (POINTER)
void application_identifier_changed (self, gchar** new_aid)
{
    g_print("application_identifier_changed()\n");
}

signal last NONE (POINTER)
void display_name_changed(self, gchar** new_display_name)
{

}
}

powerview-application-presence-instance.xml

<!DOCTYPE node PUBLIC "-//freedesktop//DTD D-BUS Object Introspection 1.0//EN" "http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd">
<!-- 
http://dbus.freedesktop.org/doc/dbus-specification.html#introspection-format
http://dbus.freedesktop.org/doc/dbus-specification.html#message-protocol-signatures
-->
<node name="/">
<interface name="org.maskwa.PowerviewApplicationPresence">

    <method name="GetApplicationIdentifier">
        <arg type="s" name="OUT_aid" direction="out" />
    </method>
    <signal name="ApplicationIdentifierChanged">
        <arg type="s" name="new_aid" />
    </signal>

    <method name="GetDisplayName">
        <arg type="s" name="OUT_display_name" direction="out" />
    </method>
    <signal name="DisplayNameChanged">
        <arg type="s" name="new_display_name" />
    </signal>
</interface>
</node>

project tarball: https://www.slello.com/tmp/PowerviewTestApp.tar.gz

I would appreciate any help.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T15:31:06+00:00Added an answer on May 13, 2026 at 3:31 pm

    I found the source of the issue. In powerview-application-presence.gob, signal last NONE (POINTER) had to be signal last NONE (STRING).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

While attempting to send a message for a queue through the BeginSend call seem
I'm attempting to send a dictionary from jQuery to Django using a getJSON call:
I am attempting to send a json message from a custom application to a
I'm attempting a basic AJAX call where I send the address 'www.google.com' to urlpost.php
I'm attempting to send a .proto message from an iPhone application to a Java
I am attempting to send statuses to appFabric via a service bus from a
I'm getting a java.lang.IllegalArgumentException exception when attempting to send a message to the GCM
I am attempting to send additional parameters with jqueryUI's autocomplete using an abstract approach.
I'm attempting to send emails from my C# app using the System.Net.Mail.MailMessage class. For
I am attempting to send a Point-to-Point JMS message from an oracle database stored

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.