Home » Developing U++ » UppHub » DBus package for U++ (A D-Bus client side implementation for U++)
| Re: DBus package for U++ [message #62063 is a reply to message #62057] |
Mon, 21 September 2026 07:43  |
Oblivion
Messages: 1284 Registered: August 2007
|
Senior Contributor |
|
|
Hi,
The latest entry in the `DBusLib` is `DbusScreenshot`.
It allows taking screenshots even on wayland, both in interactive mode and non-interactive mode (the latter requires polkit).
The reference example:
#include <DBusLib/DBusLib.h>
using namespace Upp;
CONSOLE_APP_MAIN
{
StdLogSetup(LOG_FILE|LOG_COUT);
DBusConnection dbus;
if(!dbus.ConnectSession()) {
RLOG("Failed to connect to D-Bus session bus: " << dbus.GetErrorDesc());
Exit(1);
}
// Take a screenshot in "interactive mode"
RLOG("Screenshot path: " << TakeScreenshot(dbus));
}
With this addition we have now
- DBusInspector
- DBusMediaPlayer
- DBusNetworkManager
- DBusNotification
- DBusFileSelector
- DBusScreenshot
in the companion library for DBus core. They all have API docs included.
The list will eventually grow.
Best regards,
Oblivion
Github page: https://github.com/ismail-yilmaz
Bobcat the terminal emulator: https://github.com/ismail-yilmaz/Bobcat
TerminalCtrl package https://github.com/ismail-yilmaz/Terminal
|
|
|
|
Goto Forum:
Current Time: Wed Sep 30 12:15:38 GMT+2 2026
Total time taken to generate the page: 0.01770 seconds
|