Help with plugin code, please
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
Update! I got it working using TLP since it runs as root. Just in case anyone is wondering.