Comment 3 for bug 1291105

Revision history for this message
Luke Yelavich (themuso) wrote : Re: [Bug 1291105] Re: After using spd-say (with pico TTS) with the root account, spd-say stops working for users

I've actually got a better idea. Instead of checking the user id, we can use XDG_RUNTIME_DIR as a base for the wav file. So something like $XDG_RUNTIME_DIR/speech-dispatcher. That will be cleaned up when the user logs out, and nobody then knows that another user is using speech-dispatcher's generic synth mechanism. Probably not really a security issue, but is still cleaner as this file is temporary for only the logged in user, and only for their session.

I'll go ahead and implement this unless you have an objection.