SiriProxy icon indicating copy to clipboard operation
SiriProxy copied to clipboard

Help with plugin code, please

Open Number1 opened this issue 14 years ago • 1 comments

Hi all. I hope this is an appropriate place to post this request for help. I'm trying to write a plugin that will play videos on a windows pc. My proxy is set up on a linux vm on my mac. using just a plain ruby file, I am able to use Dir.glob to get to the shared folder on my mac machine. When I use Dir.glob in my siri proxy plugin class, nothing gets returned. See the example below:

listen_for /Watch (.)/i do |now_playing| say "Let me see what I can do" response = Dir.glob("__/movies on imac/") puts response end

All that is returned is []

But the same command form a .rb file on my desktop returns the directory structure as expected.
Thanks

Number1 avatar May 09 '12 22:05 Number1

Update! I got it working using TLP since it runs as root. Just in case anyone is wondering.

Number1 avatar May 15 '12 00:05 Number1