sidorares/dbus-native

Unkown bus address Error

BelkaDev opened this issue · 2 comments

Issue description

Using the library throws an error.

Steps to reproduce the issue

var dbus = require('dbus-native');
var bus = dbus.sessionBus();

What's the actual result?

Error: unknown bus address
    at createStream (/node_modules/dbus-native/index.js:22:26)
    at createConnection (/node_modules/dbus-native/index.js:76:31)
    at Object.module.exports.createClient (/node_modules/dbus-native/index.js:136:20)

Additional details / screenshot

OS: Arch
DE: KDE

can you show what's in your DBUS_SESSION_BUS_ADDRESS environment variable @BelkaDev ?

can you show what's in your DBUS_SESSION_BUS_ADDRESS environment variable @BelkaDev ?

It was empty and I had to export it manually
This did the trick:

echo "export $(dbus-launch | head -n1)" >> .zshrc