Administrator
|
You may need to use "dbus-send" in that case.
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
Registered Member
|
If I replace with
, it still doesn't work and complains about X11 initialization... Any suggestions?
KarlisRepsons, proud to be a member of KDE forums since 2008-Nov.
|
Administrator
|
Try sourcing ~/.dbus/session-bus/* prior to running that command.
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
Registered Member
|
So this script:
outputs this:
And with this the result is similar:
Next ideas?
KarlisRepsons, proud to be a member of KDE forums since 2008-Nov.
|
Administrator
|
Can you post the full output of the second one? Did it have just an X error? Or more than that?
You may also need to set the DISPLAY variable. Not sure how you are going to detect that however.
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
Registered Member
|
Well, the output is identical except for root warning (that if statement precludes it)...
KarlisRepsons, proud to be a member of KDE forums since 2008-Nov.
|
Administrator
|
My testing indicates that you need to set DISPLAY as well. You may be able to use the output of 'ck-list-sessions' or 'who' to find out what is needed.
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
Registered users: Bing [Bot], Google [Bot], Sogou [Bot]