mapping pid to qdbus service numbers after launching

I am trying to write a bash script which will launch a program (konsole) and send dbus messages to it. Here is my experiment konsole & echo pid is $! ps aux | grep konsole qdbus | grep...

Emacs connects to system bus, but not to the session one

The system bus works fine (dbus-init-bus :system) returns nil, as it should. However, connection to the session bus (dbus-init-bus :session) raises (dbus-error "No connection to bus"...

Defining Enum custom types for Qt D-Bus introspection

I am working with QDBUS which has the custom type as Enum. After googling I found below link which explains marshalling of QDBUS custom...

Change konsole tab title from command line and make it persistent?

How can I change the konsole tab title? By default, it's set to %u : %n, so it always changes automatically. I can set it with: qdbus org.kde.konsole $KONSOLE_DBUS_SESSION setTitle 1 "My...

How do i make the kdialog a certain width

Im trying to make my first bash script and im trying to use kdialog . How do i make the progress bar a certain width here is my attempt dbusRef=`kdialog --title "Sweet As Buckup Demon"...

How do I extract the returned data from QDBusMessage in a Qt DBus call?

I'm trying to call WPA supplicant's DBus interface using Qt's QDBus class library. In particular, I'm trying to use the "Get" property call to retrieve the "Interfaces" property value. The DBus...

qdbusxml2cpp unknown type

While using the qdbusxml2cpp program to convert the following xml to a Qt Class, I am getting this error: qdbusxml2cpp -c ObjectManager -a ObjectManager:ObjectManager.cpp xml/object_manager.xml...

unmet dependencies with QT

I can't install any more packages in my Ubuntu 12. I tried apt-get install -f, and many others tricks like this, but no progress in finding a solution. Here is the broken packages belonging to...

Gnome 3: Call sushi, the Nautilus quick file previewer via DBus

In Gnome 3, Nautilus has a new file previewer called Sushi. You can select a file in Nautilus, hit the spacebar and it will show a quick preview. This is very similar to what Quick Look...

Re-connecting to QDBus server after server has been restarted (Qt C++)

I'm testing out using DBus for inter process communication for an QT C++ project (Linux). I'm not using the bus daemon and i'm using unix paths / sockets. After navigating my way through the...

What is wrong with this class? ( QDBusAbstractAdaptor )

I have the following class: class DBusAdaptor(QDBusAbstractAdaptor): Q_CLASSINFO("D-Bus Interface", 'org.kde.kdialog.ProgressDialog') Q_CLASSINFO("D-Bus Introspection",...

Proper way to implement async function in Qt/DBus adaptor

As described in D-Bus documentation, all IPC calls considered as asynchronous. When Qt calls remote D-Bus object through QDBusAbstractInterface, there's QBusPendingCall<T> which is fully async and...

Bluetooth Issues Sending AVRCP Volume Changes Using D-Bus (qdbus) Send With org.bluez.MediaTransport1

I am working on emulating a Bluetooth headphone for automated testing using a raspberry pi as my headphone. Part of the challenge I was facing initially was to send AVRCP commands from the PI to...

Change wallpaper programmatically in KDE

I'd like to write a program in F# to change the wallpaper on Linux. It seems like I need to use dbus and JS to do that in KDE and I'm a bit confused about it. I found this, and tried running...

QDBus Works with my Server as Client but not GDbus

I wrote a simple DBus server in Linux using Qt's QDBus. It is a very small amount of code and the core of it is here: InterfaceDescription::InterfaceDescription() { new ifadapter(this); //...

How to use two Qt5 versions on KDE Plasma to avoid conflict?

I am using Opensuse Leap 42.3, with KDE Plasma 5.8.7 which uses Qt 5.6.2. I would like to use the latest Qt version (5.10 as of asking this question) for development, and I've installed it in...

QDBus signal not received

I want to receive DBus signal in Qt application: receiver.h #ifndef RECEIVER_H #define RECEIVER_H #include <iostream> #include <QObject> class Receiver : public QObject { Q_OBJECT public...

Add QObject to QT main loop in order to recieve dbus messages

I have a Qt console application. In this application, there is an object of type "my_client". "my_client" objects have an slot named "messageSlot". This slot is connected to a DBUS message. So the...

How can I use DBus to set different wallpapers on each monitor in KDE Plasma 5.13.2

I have multiple monitors on which I want to set a different wallpaper and the best way I can figure out is to use dbus. I've found a few snippets on the net that almost do what I want, however...

How to setup Bluez 5 to ask pin code during pairing

I implemented the org.bluez.Agent1 interface using QDbus and I would like to set a fixed pin (that I will provide to the users) in order to authenticate all the pairing request and reject them if...

Raspberry Pi + Bluez + A2DP + AVRCP

In the past 2 days i've been googling for a way to control the media playback from my iPhone through my Raspiberry pi headless speaker. I've successfully setup the pi using the following tutorial:...

Konsole Terminal - Manually restore saved KDE session files using qdbus command

At times, i have multiple konsole terminal open with multiple tabs. I would like to save and restore it manually, just in case i accidentally close the window. In KDE there is a command to save...

Rails & Docker: configure bundler to run bundle install in a docker build for Rails.4.2.6?

I am having so much trouble with docker. It seems to be a pattern. I have a dockerfile which installs Node.js and Yarn from source repositories fine. I install ruby from the get-apt repositories...

C++ cross-compiling using cmake Qt5 Webkit on a Linux box, targeting Windows using mingw, fails

First of all, it has been impossible for me to find an answer on google so far. I will try to describe as much as I can, I am seeking for advice on what I am doing wrong, be aware that I am in no...

Qt DBus connect not working with typedef in SLOT arguments

I can connect DBus signals to Qt slots using QDBusConnection::connect and the old-style SLOT syntax: #pragma GCC diagnostic push # pragma GCC diagnostic ignored "-Wconversion" # include...

How to install Qt4 and Qt5 alongside each other Ubuntu 1804

I have some software packages that depend on qt4. I installed Qt 4 just for those packages with the command sudo apt install qt4-default. I want to install qt5-default, but when I run the command...

Qt/C++ detect QPushButton hovered to playing sound

I would like to play a sound in my application when one of my QPushButton is hovered by mouse cursor. I am beging to learn C++ and I tried to write this : onhover.h #ifndef ONHOVER_H #define...

Get list of available WiFi connections in Linux

I am try to get list of SSID in Fedora 31 Linux, by D-Bus message, using Qt5. I am checking many tutorials, but still cant communicate by D-Bus, and I still do not understand differences between...

how to list windows per KDE/Plasma5 Activity

I am trying to write a script that launches an app if not running or activates the window if already visible in the current activity. Using xdotool or wmctrl I am able to get the list of windows...

How to properly connect the "PropertiesChanged" Signal of "org.freedesktop.DBus.Properties" to a slot in QT with "QDbusConnection"?

I am implementing an interface to an embedded device which exposes its hardware configuration via a dbus API. At the moment I work out the access to the hardware I/O-pins of the device. While...