1,462 questions
0
votes
0
answers
90
views
Tmds.DBus query works in a console app, but throws exception in my AvaloniaUI application
I want to get DE accent color from d-bus, so I try to call org.freedesktop.portal.Desktop with interface org.freedesktop.portal.Settings method ReadOne with namespace org.freedesktop.appearance and ...
3
votes
1
answer
114
views
How to make sure a child process is placed into the same cgroup as its parent?
I am making my own sandboxing tool based on bubblewrap and systemd cgroup management. I am dynamically creating a systemd scope via the DBus API and then spawning a child process running a bubblewrap ...
-3
votes
1
answer
118
views
How do I access the ATSPI dbus service [closed]
How do I view the whole object tree for atspi. All docs I have read say the name for atspi's dbus service is org.a11y.atspi.Registry but I dont get that when I list both the system and session ...
2
votes
1
answer
57
views
gdbus-codegen serverside property changed subscription
I'm using gdbus-codegen to generate server-side code for exposing properties on a D-Bus interface. The generated code seems to maintain its own internal cache of property values. My confusion is about ...
3
votes
3
answers
363
views
Reading desktop notifications from the command line. Debian/Ubuntu
Running Ubuntu 24.04lts.
NOTE: I am trying to read the notification sent by he Discord app to my personal desktop notifications. When I notification from a specific sender, with a specific message, I ...
0
votes
0
answers
51
views
dbus-daemon[692]: [system] dbus-daemon transaction failed (OOM), sending error to sender inactive
I wrote a bash script that uses nmcli c s $VLAN to check whether a VLAN is active or not. However, I found that nmcli c s VLAN.STG triggers dbus to generate OOM-related logs in the journal log.
This ...
3
votes
1
answer
227
views
Scan for changes to linux dbus properties for bluetooth using sdbus-c++
I want to scan for changes of bluetooth devices under linux. I'm trying to implement this with the sdbus-c++ library version 1.40 and wrote following code:
// save to sdbus-example.cpp and compile ...
1
vote
0
answers
105
views
Why does my PySide6 DBUS ScreenSaver Signal-Listener not work?
I am currently trying to connect to the Screensaver Signal (org.freedesktop.ScreenSaver - /ScreenSaver - ActiveChanged(bool)) that is emitted when the Screen-Saver is closed:
$ dbus-monitor "...
2
votes
1
answer
129
views
Subscribed to InterfaceAdded But no signal from dbus connection
My goal is to automate pairing and connecting between my device and controller via BlueZ to handle Bluetooth connection.
In order to do this, I thought of the most basic scenario:
execute the program
...
1
vote
1
answer
120
views
Understanding behavior of DBus with respect to killing the process that used DBus to register a name
Take this simple program in Haskell
{-# LANGUAGE OverloadedStrings #-}
import Control.Exception (finally)
import Control.Monad (forever)
import Xmobar (tenthSeconds)
import DBus.Client
startServer' :...
0
votes
1
answer
135
views
Bluez D-Bus: Bluetooth speaker play/pause/next/prev/volume up/down handling in python?
Use case:
I have my pi zero as a music player which sends audio to connected bluetooth speaker, now i need to read the avrcp events/commands send by bluetooth speaker/headset when i press buttons like ...
1
vote
0
answers
160
views
Segfault while appending args to DBus Message
I am trying to learn dbus programming from BLE linux guide. Because most of the example code in guide is written in python, I am trying to mimick same examples in c and libdbus. This is my small ...
3
votes
0
answers
186
views
Bluetooth device using Serial Port Profile (Master) can't connect to my PC (Slave)
I have a DS2278 barcode scanenr that is configured to connect via Bluetooth (Classic) using Serial Port Profile (Master).
For initiating a connection from the scanner (Master) I have to scan a barcode ...
0
votes
0
answers
75
views
How to reliably detect success/failure of org.bluez.Device1.Connect() over D-Bus?
I’m working with the BlueZ D-Bus API (org.bluez.Device1.Connect()) to connect to Bluetooth devices. Is there any official way to detect when a connection attempt has failed, other than setting my own ...
1
vote
1
answer
248
views
Howto emit signal org.freedesktop.DBus.Properties.PropertiesChanged with QDBusAbstractAdaptor derived class
I have a qdbusxml2cpp generated class, which is derived from QDBusAbstractAdaptor.
When I change the content of a property, I would expect that either the PropertiesChanged signal is emitted or that I ...