node-dbus
node-dbus copied to clipboard
Parsing Issue
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