"el.wubo" wrote:
So, is there a standard directory for music, videos, and pictures on FreeBSD? On linux it's $HOME/Music, $HOME/Videos, and $HOME/Pictures.
Let me know and I'll add freebsd support and you should be good to go.
No, there's no standard location for such data in FreeBSD. But I've created a place. On this machine it happens to be /store/Media/… Since there is no primary, non-root user of the machine, it's not in any $HOME, but for the paths you mention above, "$HOME" could be swapped for "/store/Media" (again, only as I've set up this one machine). Wouldn't it make more sense for MyMedia to not block on launch if such data path(s) don't exist? It could make guesses, but then prompt the user for the path if not found…
FWIW, if I comment out those three lines, mymedia.py does run:
# ensure("music_dir", default_music_path)
# ensure("video_dir", default_video_path)
# ensure("photo_dir", default_photo_path)
… then it spits out error with zeroconf:
$ python mymedia.py
warning: this server has not completed rendezvous
http://0.0.0.0:8001/
… still, I can visit its webconf at "http://fs:8001/" (my server's name is "fs", and it does have Avahi running, and my router does know it by its advertised name: "fs.local")
So, I've successfully "registered" it on my Roku & seem to be able to use it.