kde dbus: Set interface explicit to provide requestView.

This commit is contained in:
Denis Knauf 2023-01-19 22:09:32 +01:00
parent 333a8f57ea
commit 1ee1dd2b70

View file

@ -136,7 +136,7 @@ class ProgressBar::KDE < ProgressBar::Base
@finished = false
@bus = DBus::SessionBus.instance
@service = @bus['org.kde.JobViewServer']
jvs = @service['/JobViewServer'] #['org.kde.JobViewServer']
jvs = @service['/JobViewServer']['org.kde.JobViewServer']
jvs.introspect
flags = (@is_cancable ? 0x1 : 0) | (@is_suspendable ? 0x2 : 0)
view_path = jvs.requestView @app_name, @app_icon_name, flags