krateio
Rust library for showing job progress in the Plasma notification area, the same popups KDE uses for file transfers. Built for tools like package managers that want desktop progress reporting without linking Qt.
It speaks the KDE JobView D-Bus protocol directly over zbus. The modern org.kde.JobViewServerV2 protocol (Plasma 6) is preferred, with automatic fallback to the legacy org.kde.JobViewServer protocol.
Usage
let tracker = new?
.with_app_name
.with_app_icon;
let job = tracker
.job
.title
.cancellable
.start?;
for in packages.iter.enumerate
job.finish?;
Run the demo against a live Plasma session:
Features
- Title, status message, percentage, speed, and processed/total amounts (bytes, files, directories, items)
- Two description rows for details such as the current package name
- Cancel and suspend requests from the popup, exposed as polled flags
- Transient and immediate display hints
- Jobs terminate cleanly on drop
Requirements
A session bus with a JobView server, normally provided by plasmashell. No KDE or Qt libraries are required at build or run time.
License
MIT