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 9256769
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T12:01:47+00:00 2026-06-18T12:01:47+00:00

Can i call dbus_g_proxy_new_for_name without the application that implements the D-Bus method to be

  • 0

Can i call dbus_g_proxy_new_for_name without the application that implements the D-Bus method to be up and running ?
I’m not sure if it is good practice to do so, or if is usual.

  • 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-06-18T12:01:48+00:00Added an answer on June 18, 2026 at 12:01 pm

    Before I answer, I’d like to point out that DBus-GLib is deprecated. However, the answer applies to g_dbus_proxy_new (which is basically the replacement for dbus_g_proxy_new_for_name) as well.

    Yes. The the dbus_g_proxy_new_for_name talks about how the owner can change over time, though it doesn’t explicitly mention the case of when there is no owner at the time of the call (original emphasis):

    THE NAME OWNER MAY CHANGE OVER TIME, for example between two different method calls, unless the name is a unique name. If you need a fixed owner, you need to request the current owner and bind a proxy to its unique name rather than to the generic name; see dbus_g_proxy_new_for_name_owner().

    It’s actually very common to use this with D-Bus activation. Check out the “Client Implementation” section of Raphaël Slinckx’ DBus Activation Tutorial. It includes this snippet (pay attention to the comments):

    /* This won't trigger activation! */
    proxy = dbus_g_proxy_new_for_name (connection,
            "org.gnome.ServiceName",
            "/org/gnome/ServiceName",
            "org.gnome.ServiceName");
    
    /* The method call will trigger activation, more on that later */
    if (!org_gnome_ServiceName_echo_string (proxy, "The string we want echo-ed", &result, &error))
    {
        /* Method failed, the GError is set, let's warn everyone */
        g_warning ("Woops remote method failed: %s", error->message);
        g_error_free (error);
        return;
    }
    

    D-Bus activation doesn’t even get triggered until after a method is called, so obviously the name doesn’t necessarily exist before then.

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

Sidebar

Related Questions

we can call the Array method in the top level like this Array(something) that
Can call a method by class name in same package without create object of
I know that we can call a map-reduce job from a normal java application.
I know that I can call a page method with jquery using the following
I understand that I can call ToString().IndexOf(...), but I don't want to create an
(Yes I know I can call Java code from Scala; but that is pointless;
I can call collectionView:cellForItemAtIndexPath: to get a specific cell in order to modify that
I saw that you can call from JS to function of PhoneGap on the
Multiply users can call store procedure(SP) , that will make some changes to mytable
Are there any Cocoa APIs that I can call to get Emoji and their

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.