Skip to content

Parsing Issue #246

@rakusan2

Description

@rakusan2

Running

dbus.getBus("session")
  .getInterface(
    'org.gnome.Mutter.DisplayConfig', 
    '/org/gnome/Mutter/DisplayConfig', 
    'org.gnome.Mutter.DisplayConfig', 
    (err, dispConfig)=>{
      dispConfig.GetCurrentState((err2, response) =>{
        console.log(response)
      })
    })

returns

response = [
  1,
  [ { '[object Object]': undefined } ],
  [ { '0': 360, '1920': 0, '4480': 462 } ],
  {
    renderer: 'native',
    'layout-mode': 2,
    'legacy-ui-scaling-factor': 1
  }
]

I expect the '[object Object]' to be a parsing error as calling the method from the terminal using gdbus gives me far more information instead of it.

OS: Ubuntu 22.04.1 LTS x86_64
Node: 16.19.0
node-dbus: 1.0.7

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions