dbus-send's method call to SessionManager

49 views
Skip to first unread message

Seongbin BAK

unread,
Sep 26, 2021, 12:56:12 PM9/26/21
to Chromium OS Development

I have captured a dbus method call by dbus-monitor. And wanna reappear it by dbus-send. (for starting guest mode automatically in CROS)
Below is what I want to reappear.

# dbus-monitor --system "path=/org/chromium/SessionManager"

method call time=1632639141.486152 sender=:1.325 -> destination=org.chromium.SessionManager serial=402 path=/org/chromium/SessionManager; interface=org.chromium.SessionManagerInterface; member=RestartJob

   file descriptor
         inode: 489350
         type: socket
         address family: unix
         name @
         peer @
   array [
      string "/opt/google/chrome/chrome"
      string "--gpu-sandbox-failures-fatal=no"
      string "--enable-logging"
      string "--use-cras"
      string "--use-gl=egl"
      string "--user-data-dir=/home/chronos"
      string "--vmodule=*night_light*=1,*/ash/wm/tablet_mode/*=1,wizard_controller=1,*/webui/chromeos/login/*=1,*/browser/chromeos/login/screens/*=1,enrollment_screen_handler=1,*/browser/chromeos/login/enrollment/*=1,*/ui/ozone/*=1,*/ui/display/manager/chromeos/*=1"
      string "--enable-wayland-server"
      string "--aura-legacy-power-button"
      string "--form-factor=WAYNE-OS"
      string "--login-profile=user"
      string "--system-developer-mode"
      string "--bwsi"
      string "--homepage=chrome://newtab/"
      string "--incognito"
      string "--log-level=1"
      string "--login-user=$guest"
   ]
   uint32 0


I was about write
# dbus-send --print-reply --system --type=method_call --dest=org.chromium.SessionManager /org/chromium/SessionManager org.chromium.SessionManagerInterface.RestartJob array:string:"/opt/google/chrome/chrome"string:"--gpu-sandbox-failures-fatal=no" .......

But I am not sure about how to write file descriptor part especially.
I would appreciate it if you advise me.
Reply all
Reply to author
Forward
0 new messages