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: Samuel Thibault
Subject: Re: spd_open fails when starting program remotely.
Date: Sun, 1 Mar 2020 22:58:06 +0100
User-agent: NeoMutt/20170609 (1.8.3)

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]