Skip to content
GitLab
  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • D dbus
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 249
    • Issues 249
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 33
    • Merge requests 33
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • dbus
  • dbus
  • Merge requests
  • !206

dbus-send: Support for variants inside containers

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Frederik Van Bogaert requested to merge fvanbogaert/dbus:dev_add_variant_type_to_dbus_send into master Apr 19, 2021
  • Overview 16
  • Commits 1
  • Pipelines 15
  • Changes 1

Properly add support for the variant type to dbus_send

Should work in 3 use cases:

  • A single variant argument is provided on the command line
  • Arrays of variants
  • Dictionaries with variants as keys

Manually tested and confirmed working using dbus-monitor. Example usage:

frederik@fredevuan-pc:~/dbus$ bin/dbus-send --print-reply --dest=org.lxqt.QTerminal-2725 /windows/c8ca6b18ad8744a7b9f9024dcfa4250e org.lxqt.QTerminal.Window.newTab 'dict:string:variant:test,int16:-1,world,string:solongandthanksforallthefish'
method return time=1618758023.525839 sender=:1.33 -> destination=:1.152 serial=109 reply_serial=2
   object path "/tabs/cfa2a6afe11f48f1bf02bb76f33b9b97"

In dbus-monitor:

method call time=1618758023.510109 sender=:1.152 -> destination=org.lxqt.QTerminal-2725 serial=2 path=/windows/c8ca6b18ad8744a7b9f9024dcfa4250e; interface=org.lxqt.QTerminal.Window; member=newTab
   array [
      dict entry(
         string "test"
         variant             int16 -1
      )
      dict entry(
         string "world"
         variant             string "solongandthanksforallthefish"
      )
   ]
method return time=1618758023.525697 sender=:1.33 -> destination=:1.152 serial=109 reply_serial=2
   object path "/tabs/cfa2a6afe11f48f1bf02bb76f33b9b97"

Signed-off-by: Frederik Van Bogaert frederik.vanbogaert@mind.be

Edited Apr 21, 2022 by Simon McVittie
Assignee
Assign to
Reviewer
Request review from
Time tracking
Source branch: dev_add_variant_type_to_dbus_send