Questions tagged [gdbus]

Tool for working with D-Bus objects

Simple tool for working with D-Bus objects: More info: manual

102 questions
0
votes
0 answers

GDBus: how to be notified when the top-level ObjectManager object appears on the bus?

In GDBus it's possible to watch for a particular name to appear on the bus with g_bus_watch_name_on_connection(). It's also possible to be notified about new interfaces/objects added on objects implementing the org.freedesktop.DBus.ObjectManager…
0
votes
0 answers

Passing parameter to RequestScan method of Network Manager service

I want to create a tuple of array of dictionary to pass argument to method RequestScan (IN a{sv} options). I write code as below. /* Create empty dictionary */ GVariantBuilder *b; GVariant *option; b =…
0
votes
1 answer

How to pass array argument (ia(sb)) to gdbus method call,

I am trying to use the systemd API (SetLinkDomain) with gdbus bindings, below is the example code, GVariant *BuidArray() { GVariantBuilder *struc = g_variant_builder_new(G_VARIANT_TYPE("(sb)")); const char *name = "abc.net"; …
0
votes
1 answer

How do I obtain GDBus interface name with Giomm?

I am trying to detect added Bluetooth devices/adapters using Bluez D-Bus API and GDBus. However, I am unable to check the name of the added D-Bus interface. I already tried accessing the interface name using the underlying GDBusInterfaceInfo C…
SSYSS
  • 31
  • 5
0
votes
1 answer

How to save file descriptor returned from gdbus call in bash?

I'm trying to use #!/bin/bash sudo gdbus call -y -d org.freedesktop.login1 \ -o /org/freedesktop/login1 \ -m org.freedesktop.login1.Manager.Inhibit \ sleep me because block sleep 10 to…
jcarrete5
  • 37
  • 2
  • 7
0
votes
1 answer

Gdbus property set form client not working

Based on the fatmimin hello world sample, I have added a property to the interface: make gen does its thing, resulting in two funcs…
Matt
  • 11
  • 2
0
votes
1 answer

cmake add_custom_command pre_build

I am writing cmake example for the first time. Here is a part of CMakeFiles.txt: add_custom_command( OUTPUT ${CODEGEN_SRC} PRE_BUILD COMMAND ${CODEGEN_CMD} ${SERVICE_XML} --generate-cpp- code=/home/hello/include/gen/testGenCode COMMENT…
JungWoo
  • 15
  • 1
  • 4
0
votes
1 answer

How to merge two bash calls into one in linux

I have 2 linux gnome commands that I would like to merge into one. One is giving me the title: gdbus call -e -d org.gnome.Shell -o /org/gnome/Shell -m org.gnome.Shell.Eval global.get_window_actors\(\)[`gdbus call -e -d org.gnome.Shell -o…
Silve2611
  • 2,198
  • 2
  • 34
  • 55
0
votes
1 answer

gdbus signal block in method call

I am trying to send the signal on dbus (g_dbus_connection_emit_signal), inside the method call. I have a client program which communicates with server program using dbus. when I call a method on server side, it redirects to that method function and…
0
votes
1 answer

D-Bus returns UnkownMethod - saying No such interface on object at path

I want to write a short program, which triggers the Thumbnail creation for all pictures on my network share recursively (e.g. over night) - so that when I access a folder in Thunar, the thumbs are displayed immediately. I would say, that when I can…
Charly
  • 1,270
  • 19
  • 42
0
votes
1 answer

Error while contacting my gdbus server without the bus daemon

I am trying to create a peer-to-peer gdbus communication on a linux system. I used gdbus-codegen tool to generate the code which I can use to create the server. My server program instantiates an object using the generated skeleton functions and…
Moon_Raven
  • 309
  • 2
  • 12
0
votes
1 answer

sd_bus_get_property_string equivalent for gdbus?

I try to read out the ActiveState property of a systemd unit with gdbus/glib-2.0. For sd-bus there exists the convenient function sd_bus_get_property_string. What would the equivalent call if gdbus is used. I am ware of the gdbus introspect command,…
agentsmith
  • 173
  • 1
  • 11
0
votes
1 answer

How to correctly manage references returned by g_dbus_interface_get_object()

I have an application in which I'm using UDisks to handle some drives and partitions. In my application I have a situation where I have a pointer to a UDisksDrive that I need to convert to a UDisksObject pointer through which I can access other…
Matthew
  • 685
  • 8
  • 18
0
votes
1 answer

The name is not activable on g_dbus_proxy_call_sync

On a GNOME Xorg session, to get the return value of method GetIdletime exposed on DBus, you can either use $ dbus-send --print-reply --dest=org.gnome.Mutter.IdleMonitor /org/gnome/Mutter/IdleMonitor/Core…
Germano Massullo
  • 2,572
  • 11
  • 40
  • 55
0
votes
1 answer

How to use dbus in CentOS without Desktop Environment

My system is a centos with no gui. I have a server application which "listens" for a method call in a session dbus. It apparently works fine. I have pydbus and python3-gobject installed fine, I also have dbus-launch working. This is the server…
Adriano_Pinaffo
  • 1,429
  • 4
  • 23
  • 46