speechd-discuss
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: spd_open fails when starting program remotely.


From: Michael K
Subject: Re: spd_open fails when starting program remotely.
Date: Mon, 2 Mar 2020 00:21:05 +0000 (UTC)

Ah, that works ... perfect.
thanks,
   Michael

On Sunday, March 1, 2020, 04:58:10 PM EST, Samuel Thibault <address@hidden> wrote:


Hello,

Michael K, le dim. 01 mars 2020 21:28:46 +0000, a ecrit:
> I need to define the DISPLAY and DBUS_SESSION_BUS_ADDRESS environment variables
> for the GTK / Gnome components to work (and they do)
>
> USER="michael"
> GDISPLAY=$(who | sed -En "s/^${USER}\s.*\((:.*)\)/\1/p")
> DBUS_SESSION_BUS_ADDRESS="unix:path=/run/user/$(id -u ${USER})/bus"
>
>
> sudo -H -u ${USER} -i DISPLAY=${GDISPLAY} DBUS_SESSION_BUS_ADDRESS=$
> {DBUS_SESSION_BUS_ADDRESS} /usr/local/bin/MyProgram
>
>
> Does anyone know what else is needed or what is stopping 'spd_open" from
> working in this scenario ?


You also need to set the XDG_RUNTIME_DIR environment variable, since spd
uses "$XDG_RUNTIME_DIR/speech-dispatcher/speechd.sock"

Samuel


reply via email to

[Prev in Thread] Current Thread [Next in Thread]