12 Haziran 2019 Çarşamba

dbus-send komutu

dbus Nedir
Açıklaması şöyle
dbus allows two-way communication between applications.
dbus benzeri şeyler Window'ta da vardır. Açıklaması şöyle
dbus provides a generic protocol, and a broker service where programs can ask to be connected to a program providing access control to specific functionality. If the targeted program is already running, the broker will just forward requests, if it isn't running already, the broker will start the program on demand if it knows how to do so.

The equivalent functionality on Windows is COM/DCOM in combination with the registry.
screen reader imlecin nerede olduğunu öğrenmek için dbus kullanır. Açıklaması şöyle
For example, blind computer users rely on screen readers, which can render information through synthetic speech or Braille (or both). Blind users rely on keyboard access to applications (e.g. using TAB to cycle through UI components and lots of shortcuts); a screen reader needs to know where the keyboard focus has landed and then query that UI component for its role (e.g. "button", "menu", "checkbox" etc.), name (i.e. its label, e.g. "OK", "Cancel"), and state and properties (e.g. "checked" and "unchecked" for checkboxes, "expanded" for expandable regions, "required" for required input fields, "disabled", etc.). A screen reader would also need to receive push notifications displayed in the application.
dbus'tan Önce
Örneğin socketler kullanılıyordu. Açıklaması şöyle.
The "traditional" way of Inter Process Communication (IPC) on UNIX and Linux systems directly uses sockets, e.g. process A opens /var/run/a.socket and process B reads/writes to it. This works rather fine for tightly-knit programs that were designed to communicate together.
Kullanım
Örnek
Şöyle yaparız.
dbus-send --type=method_call 
  --dest=org.gnome.ScreenSaver /org/gnome/ScreenSaver org.gnome.ScreenSaver.Lock

Hiç yorum yok:

Yorum Gönder