qdbus - org.freedesktop.DBus

起頭範例

Session Bus

執行

$ qdubs

顯示

:1.0
 com.ubuntu.Upstart
:1.1
:1.10
 com.canonical.URLDispatcher
:1.105
 org.gnome.Terminal
:1.108
:1.112
 org.kde.konsole
:1.113
:1.114
 org.freedesktop.Notifications
:1.116
 org.kde.knotify
:1.118
:1.119
:1.120
 org.kde.JobViewServer
 org.kde.kuiserver
:1.122
:1.123
:1.126
:1.13
:1.14
 org.xfce.SessionManager
:1.15
 org.xfce.Xfconf
:1.16
 org.a11y.Bus
:1.17
:1.18
 org.ayatana.bamf
:1.19
 org.freedesktop.PowerManagement
 org.xfce.PowerManager
:1.2
 com.canonical.MediaScanner2.Daemon
:1.20
:1.21
:1.22
 org.xfce.Panel
:1.23
:1.24
 ca.desrt.dconf
:1.25
:1.26
 org.freedesktop.network-manager-applet
:1.27
:1.28
 org.freedesktop.ScreenSaver
 org.gnome.ScreenSaver
:1.3
 org.fcitx.Fcitx
 org.fcitx.Fcitx-0
 org.kde.StatusNotifierItem-1763-1
:1.34
 org.xfce.SettingsDaemon
:1.36
 org.xfce.FileManager
 org.xfce.Thunar
:1.37
 org.xfce.xfdesktop
:1.38
:1.39
 org.blueman.Applet
:1.4
 com.canonical.Unity.WindowStack
:1.40
 org.PulseAudio1
 org.pulseaudio.Server
:1.41
:1.42
:1.43
:1.44
:1.45
:1.46
:1.47
:1.48
:1.49
:1.51
:1.52
:1.53
:1.54
:1.55
:1.56
 com.canonical.indicator.application
:1.57
 org.kde.StatusNotifierWatcher
:1.58
 com.canonical.indicator.messages
:1.59
 com.canonical.indicator.sound
:1.6
 org.freedesktop.secrets
 org.gnome.keyring
:1.60
 org.bluez.obex
:1.62
 org.gtk.vfs.UDisks2VolumeMonitor
:1.63
 org.gtk.vfs.AfcVolumeMonitor
:1.64
 org.gtk.vfs.MTPVolumeMonitor
:1.65
 org.gtk.vfs.GPhoto2VolumeMonitor
:1.66
 org.gtk.vfs.GoaVolumeMonitor
:1.68
:1.69
 org.gnome.GConf
:1.70
:1.71
 org.kde.dolphin-2215
:1.72
 org.kde.klauncher
:1.73
 org.kde.kded
:1.75
:1.76
:1.8
 org.gtk.vfs.Daemon
:1.80
 org.kde.ActivityManager
:1.81
:1.82
:1.83
:1.84
:1.85
:1.86
:1.9
:1.90
 org.gtk.vfs.mountpoint_2760
:1.92
 org.gtk.vfs.mountpoint_2771
:1.96
 org.gtk.vfs.mountpoint_2787
:1.97
 org.gtk.vfs.Metadata
org.freedesktop.DBus

System Bus

執行

$ dbus --system

顯示

:1.0
 org.freedesktop.systemd1
:1.1
 org.freedesktop.login1
:1.11
 org.freedesktop.thermald
:1.14
 org.freedesktop.NetworkManager
:1.15
:1.16
:1.17
:1.2
 org.freedesktop.Avahi
:1.20
 fi.epitest.hostap.WPASupplicant
 fi.w1.wpa_supplicant1
:1.21
:1.22
:1.24
 org.freedesktop.NetworkManager.dnsmasq
:1.26
:1.27
:1.28
:1.29
:1.3
 org.bluez
:1.30
 org.freedesktop.UDisks2
:1.31
:1.32
:1.33
:1.34
:1.35
 org.freedesktop.UPower
:1.37
 org.freedesktop.RealtimeKit1
:1.38
:1.4
 org.freedesktop.URfkill
:1.41
 com.redhat.NewPrinterNotification
 com.redhat.PrinterDriversInstaller
:1.42
:1.46
:1.47
:1.48
:1.5
 org.freedesktop.Accounts
:1.50
:1.51
:1.52
:1.53
:1.55
:1.57
:1.58
:1.6
 org.freedesktop.ModemManager1
:1.66
:1.67
:1.68
:1.69
:1.7
 org.freedesktop.DisplayManager
:1.8
 org.ofono
:1.9
 org.freedesktop.PolicyKit1
org.freedesktop.DBus

Session Bus 範例

執行

$ qdbus org.freedesktop.DBus

顯示

/

執行

$ qdbus org.freedesktop.DBus /

顯示

signal void org.freedesktop.DBus.NameAcquired(QString)
signal void org.freedesktop.DBus.NameLost(QString)
signal void org.freedesktop.DBus.NameOwnerChanged(QString, QString, QString)
method void org.freedesktop.DBus.AddMatch(QString)
method QByteArray org.freedesktop.DBus.GetAdtAuditSessionData(QString)
method QString org.freedesktop.DBus.GetConnectionAppArmorSecurityContext(QString)
method QVariantMap org.freedesktop.DBus.GetConnectionCredentials(QString)
method QByteArray org.freedesktop.DBus.GetConnectionSELinuxSecurityContext(QString)
method uint org.freedesktop.DBus.GetConnectionUnixProcessID(QString)
method uint org.freedesktop.DBus.GetConnectionUnixUser(QString)
method QString org.freedesktop.DBus.GetId()
method QString org.freedesktop.DBus.GetNameOwner(QString)
method QString org.freedesktop.DBus.Hello()
method QStringList org.freedesktop.DBus.ListActivatableNames()
method QStringList org.freedesktop.DBus.ListNames()
method QStringList org.freedesktop.DBus.ListQueuedOwners(QString)
method bool org.freedesktop.DBus.NameHasOwner(QString)
method uint org.freedesktop.DBus.ReleaseName(QString)
method void org.freedesktop.DBus.ReloadConfig()
method void org.freedesktop.DBus.RemoveMatch(QString)
method uint org.freedesktop.DBus.RequestName(QString, uint)
method uint org.freedesktop.DBus.StartServiceByName(QString, uint)
method void org.freedesktop.DBus.UpdateActivationEnvironment(QMap<QString,QString>)
method QString org.freedesktop.DBus.Introspectable.Introspect()
method void org.freedesktop.DBus.Monitoring.BecomeMonitor(QStringList, uint)
method {D-Bus type "a{sas}"} org.freedesktop.DBus.Debug.Stats.GetAllMatchRules()
method QVariantMap org.freedesktop.DBus.Debug.Stats.GetConnectionStats(QString)
method QVariantMap org.freedesktop.DBus.Debug.Stats.GetStats()

執行

$ qdbus org.freedesktop.DBus / org.freedesktop.DBus.ListActivatableNames

顯示

org.freedesktop.DBus
org.freedesktop.Notifications
org.freedesktop.thumbnails.Manager1
org.gnome.Builder
org.freedesktop.systemd1
org.xfce.Xfconf
com.canonical.MediaScanner2.Extractor
org.fcitx.Fcitx
org.freedesktop.ColorHelper
org.fedoraproject.Config.Printing
org.gtk.vfs.Daemon
org.kde.kwalletd
org.freedesktop.thumbnails.Cache1
com.canonical.hud
com.nokia.singlesignonui
com.canonical.Thumbnailer
org.gnome.GConf
com.nokia.SingleSignOn.Backup
org.gnome.evolution.dataserver.Sources5
org.gtk.vfs.UDisks2VolumeMonitor
org.a11y.Bus
org.gnome.Terminal
org.kde.kiod5
org.freedesktop.thumbnails.Thumbnailer1
org.gnome.keyring
org.freedesktop.PackageKit
com.canonical.applications.Downloader
org.xfce.FileManager
org.gnome.FileRoller
org.bluez.obex
org.gtk.vfs.GPhoto2VolumeMonitor
ca.desrt.dconf
org.gnome.evolution.dataserver.UserPrompter0
org.gnome.evince.Daemon
com.google.code.AccountsSSO.SingleSignOn
org.gnome.evolution.dataserver.Calendar7
org.kde.kglobalaccel
org.gtk.vfs.AfcVolumeMonitor
org.ayatana.bamf
org.freedesktop.FileManager1
org.kde.knotify
org.kde.kwalletd5
org.gnome.Nautilus
com.canonical.indicators.webcredentials
org.gtk.vfs.GoaVolumeMonitor
org.gtk.GLib.PACRunner
org.gnome.Calculator.SearchProvider
org.gnome.ArchiveManager1
com.canonical.MediaScanner2
org.gnome.evolution.dataserver.AddressBook9
org.blueman.Applet
org.xfce.Thunar
org.gnome.zeitgeist.Engine
com.canonical.payments
org.gtk.vfs.Metadata
org.kde.kuiserver
org.gnome.keyring.SystemPrompter
org.gnome.gedit
org.freedesktop.secrets
org.gtk.vfs.MTPVolumeMonitor
ca.desrt.dconf-editor
org.gnome.keyring.PrivatePrompter
org.gnome.zeitgeist.SimpleIndexer
org.gnome.Software

執行

$ ls /usr/share/dbus-1/services/ -1

顯示

blueman-applet.service
ca.desrt.dconf-editor.service
ca.desrt.dconf.service
com.canonical.hud.service
com.canonical.indicators.webcredentials.service
com.canonical.MediaScanner2.Extractor.service
com.canonical.MediaScanner2.service
com.canonical.payments.service
com.canonical.Thumbnailer.service
com.google.code.AccountsSSO.SingleSignOn.service
com.nokia.SingleSignOn.Backup.service
com.nokia.singlesignonui.service
org.a11y.Bus.service
org.ayatana.bamf.service
org.bluez.obex.service
org.fcitx.Fcitx.service
org.fedoraproject.Config.Printing.service
org.freedesktop.ColorHelper.service
org.freedesktop.FileManager1.service
org.freedesktop.secrets.service
org.freedesktop.systemd1.service
org.gnome.Builder.service
org.gnome.Calculator.SearchProvider.service
org.gnome.evince.Daemon.service
org.gnome.evolution.dataserver.AddressBook.service
org.gnome.evolution.dataserver.Calendar.service
org.gnome.evolution.dataserver.Sources.service
org.gnome.evolution.dataserver.UserPrompter.service
org.gnome.FileRoller.ArchiveManager1.service
org.gnome.FileRoller.service
org.gnome.GConf.service
org.gnome.gedit.service
org.gnome.keyring.PrivatePrompter.service
org.gnome.keyring.service
org.gnome.keyring.SystemPrompter.service
org.gnome.Nautilus.service
org.gnome.Software.service
org.gnome.Terminal.service
org.gnome.zeitgeist.fts.service
org.gnome.zeitgeist.service
org.gtk.GLib.PACRunner.service
org.gtk.vfs.AfcVolumeMonitor.service
org.gtk.vfs.Daemon.service
org.gtk.vfs.GoaVolumeMonitor.service
org.gtk.vfs.GPhoto2VolumeMonitor.service
org.gtk.vfs.Metadata.service
org.gtk.vfs.MTPVolumeMonitor.service
org.gtk.vfs.UDisks2VolumeMonitor.service
org.kde.dolphin.FileManager1.service
org.kde.kglobalaccel.service
org.kde.kiod5.service
org.kde.knotify.service
org.kde.kuiserver.service
org.kde.kwalletd5.service
org.kde.kwalletd.service
org.mate.freedesktop.FileManager1.service
org.xfce.FileManager.service
org.xfce.Thunar.service
org.xfce.Tumbler.Cache1.service
org.xfce.Tumbler.Manager1.service
org.xfce.Tumbler.Thumbnailer1.service
org.xfce.xfce4-notifyd.Notifications.service
org.xfce.Xfconf.service
sessioninstaller.service
ubuntu-download-manager.service

System Bus 範例

執行

$ qdbus --system org.freedesktop.DBus

顯示

/

執行

$ qdbus --system org.freedesktop.DBus /

顯示

signal void org.freedesktop.DBus.NameAcquired(QString)
signal void org.freedesktop.DBus.NameLost(QString)
signal void org.freedesktop.DBus.NameOwnerChanged(QString, QString, QString)
method void org.freedesktop.DBus.AddMatch(QString)
method QByteArray org.freedesktop.DBus.GetAdtAuditSessionData(QString)
method QString org.freedesktop.DBus.GetConnectionAppArmorSecurityContext(QString)
method QVariantMap org.freedesktop.DBus.GetConnectionCredentials(QString)
method QByteArray org.freedesktop.DBus.GetConnectionSELinuxSecurityContext(QString)
method uint org.freedesktop.DBus.GetConnectionUnixProcessID(QString)
method uint org.freedesktop.DBus.GetConnectionUnixUser(QString)
method QString org.freedesktop.DBus.GetId()
method QString org.freedesktop.DBus.GetNameOwner(QString)
method QString org.freedesktop.DBus.Hello()
method QStringList org.freedesktop.DBus.ListActivatableNames()
method QStringList org.freedesktop.DBus.ListNames()
method QStringList org.freedesktop.DBus.ListQueuedOwners(QString)
method bool org.freedesktop.DBus.NameHasOwner(QString)
method uint org.freedesktop.DBus.ReleaseName(QString)
method void org.freedesktop.DBus.ReloadConfig()
method void org.freedesktop.DBus.RemoveMatch(QString)
method uint org.freedesktop.DBus.RequestName(QString, uint)
method uint org.freedesktop.DBus.StartServiceByName(QString, uint)
method void org.freedesktop.DBus.UpdateActivationEnvironment(QMap<QString,QString>)
method QString org.freedesktop.DBus.Introspectable.Introspect()
method void org.freedesktop.DBus.Monitoring.BecomeMonitor(QStringList, uint)
method {D-Bus type "a{sas}"} org.freedesktop.DBus.Debug.Stats.GetAllMatchRules()
method QVariantMap org.freedesktop.DBus.Debug.Stats.GetConnectionStats(QString)
method QVariantMap org.freedesktop.DBus.Debug.Stats.GetStats()

執行

$ qdbus --system org.freedesktop.DBus / org.freedesktop.DBus.ListActivatableNames

顯示

org.freedesktop.DBus
org.freedesktop.fwupd
org.freedesktop.login1
com.canonical.UserMetrics
org.freedesktop.SystemToolsBackends.GroupsConfig2
com.ubuntu.LanguageSelector
org.blueman.Mechanism
org.freedesktop.SystemToolsBackends.NTPConfig
org.freedesktop.SystemToolsBackends.HostsConfig
com.hp.hplip
org.freedesktop.SystemToolsBackends.NFSConfig
org.freedesktop.ColorManager
org.freedesktop.SystemToolsBackends.UsersConfig2
org.kde.kcontrol.k3bsetup
org.freedesktop.SystemToolsBackends
com.ubuntu.SoftwareProperties
org.kde.kcontrol.kcmremotewidgets
org.freedesktop.systemd1
org.freedesktop.thermald
org.freedesktop.PolicyKit1
org.freedesktop.Avahi
org.freedesktop.ModemManager1
org.freedesktop.hostname1
org.debian.apt
org.bluez
org.freedesktop.SystemToolsBackends.ServiceConfig2
org.freedesktop.PackageKit
org.freedesktop.UPower
org.freedesktop.SystemToolsBackends.SelfConfig2
org.freedesktop.UDisks2
com.canonical.applications.Downloader
org.freedesktop.SystemToolsBackends.UserConfig2
org.freedesktop.SystemToolsBackends.TimeConfig
org.freedesktop.SystemToolsBackends.IfacesConfig
org.freedesktop.SystemToolsBackends.ServicesConfig
org.freedesktop.network1
org.freedesktop.SystemToolsBackends.GroupConfig2
org.freedesktop.resolve1
fi.epitest.hostap.WPASupplicant
com.ubuntu.ScreenResolution.Mechanism
fi.w1.wpa_supplicant1
org.freedesktop.Accounts
org.freedesktop.timedate1
org.freedesktop.SystemToolsBackends.Platform
org.freedesktop.RealtimeKit1
org.freedesktop.nm_dispatcher
org.freedesktop.SystemToolsBackends.SMBConfig
org.freedesktop.locale1

執行

$ ls /usr/share/dbus-1/system-services/ -1

顯示

com.canonical.applications.Downloader.service
com.canonical.UserMetrics.service
com.hp.hplip.service
com.ubuntu.LanguageSelector.service
com.ubuntu.ScreenResolution.Mechanism.service
com.ubuntu.SoftwareProperties.service
fi.epitest.hostap.WPASupplicant.service
fi.w1.wpa_supplicant1.service
org.blueman.Mechanism.service
org.bluez.service
org.debian.apt.service
org.freedesktop.Accounts.service
org.freedesktop.Avahi.service
org.freedesktop.ColorManager.service
org.freedesktop.fwupd.service
org.freedesktop.hostname1.service
org.freedesktop.locale1.service
org.freedesktop.login1.service
org.freedesktop.ModemManager1.service
org.freedesktop.network1.service
org.freedesktop.nm_dispatcher.service
org.freedesktop.PackageKit.service
org.freedesktop.PolicyKit1.service
org.freedesktop.RealtimeKit1.service
org.freedesktop.resolve1.service
org.freedesktop.systemd1.service
org.freedesktop.SystemToolsBackends.GroupConfig2.service
org.freedesktop.SystemToolsBackends.GroupsConfig2.service
org.freedesktop.SystemToolsBackends.HostsConfig.service
org.freedesktop.SystemToolsBackends.IfacesConfig.service
org.freedesktop.SystemToolsBackends.NFSConfig.service
org.freedesktop.SystemToolsBackends.NTPConfig.service
org.freedesktop.SystemToolsBackends.Platform.service
org.freedesktop.SystemToolsBackends.SelfConfig2.service
org.freedesktop.SystemToolsBackends.service
org.freedesktop.SystemToolsBackends.ServiceConfig2.service
org.freedesktop.SystemToolsBackends.ServicesConfig.service
org.freedesktop.SystemToolsBackends.SMBConfig.service
org.freedesktop.SystemToolsBackends.TimeConfig.service
org.freedesktop.SystemToolsBackends.UserConfig2.service
org.freedesktop.SystemToolsBackends.UsersConfig2.service
org.freedesktop.thermald.service
org.freedesktop.timedate1.service
org.freedesktop.UDisks2.service
org.freedesktop.UPower.service
org.kde.kcontrol.k3bsetup.service
org.kde.kcontrol.kcmremotewidgets.service