(bug1) existing configuration files are ignored (bug2) missing config file => no error
After running aptitude install rygel rygel-preferences
, the following /etc/rygel.conf
changes were made:
#video-upload-folder=@VIDEOS@
video-upload-folder=/var/lib/mythtv/recordings
allow-upload=true
Running rygel
as a user resulted in:
MediaExport-Message: 10:55:49.378: “file:///home/user/Videos” harvested
MediaExport-Message: 10:55:49.413: rygel-media-export-harvesting-task.vala:309: Harvesting of file:///home/user/Videos done in 0.111043
That's the wrong directory. I thought perhaps it was ignoring /etc/rygel.conf
since it ran as a user, so I created ~/.config/rygel.conf
to be simply:
[general]
video-upload-folder=/var/lib/mythtv/recordings
allow-upload=true
and the output was essentially the same. This is the full output:
Rygel-Message: 10:55:48.945: rygel-acl.vala:143: No ACL fallback policy found. Using “allow”
Rygel-Message: 10:55:48.946: Rygel v0.36.1 starting…
RygelCore-Message: 10:55:48.956: New plugin “MediaExport” available
MediaExport-Message: 10:55:49.368: rygel-media-export-extract.vala:180: Started with descriptors 3 (in) 4 (out)
MediaExport-Message: 10:55:49.375: rygel-media-export-extract.vala:180: Started with descriptors 3 (in) 4 (out)
MediaExport-Message: 10:55:49.375: rygel-media-export-extract.vala:180: Started with descriptors 3 (in) 4 (out)
MediaExport-Message: 10:55:49.378: “file:///home/user/Music” harvested
MediaExport-Message: 10:55:49.378: rygel-media-export-harvesting-task.vala:309: Harvesting of file:///home/user/Music done in 0.079083
MediaExport-Message: 10:55:49.378: “file:///home/user/Pictures” harvested
MediaExport-Message: 10:55:49.378: rygel-media-export-harvesting-task.vala:309: Harvesting of file:///home/user/Pictures done in 0.071614
MediaExport-Message: 10:55:49.378: “file:///home/user/Videos” harvested
MediaExport-Message: 10:55:49.413: rygel-media-export-harvesting-task.vala:309: Harvesting of file:///home/user/Videos done in 0.111043
The $XDG_CONFIG_HOME
variable is unset, so it should be finding the correct config file. For good measure, I ran the server this way: rygel --file="$HOME"/.config/rygel.conf
and same output. No error, but it simply ignored the config file. Then I ran rygel --file=totally/bogus/nonexistent-file
and even then there was no error and it carried on to harvest the wrong folders. In the very least it should be fatally erroring when the specified config file is not found.
This is all happening on the penultimate version of Linux Mint 19.3 (Tricia) which is based on Ubuntu Bionic. Note as well that unlike Ubuntu, rygel
is not prepackaged in Mint (hence the use of aptitude
).
(edit) bug 3 -- documentation
By the way, it's annoying that the stock config file speculatively states that the @VIDEOS@
substitution token likely points to ~/Videos
. As the user, I expect the tool tell me what that substitution token means. After all, that variable is rygel
's invention. If it's an XDG_
*_DIR
variable that it defaults to, then the config comment should say so. Otherwise how does the user know what rygel will substitute?
This is probably more of a Ubuntu bug but i'll mention it anyway: the /usr/share/doc/rygel/examples/service/README.Ubuntu
file starts off saying: "This guide has been tested with Ubuntu 12.04 LTS." It's important to note that Ubuntu 19.1 pre-packages rygel, so the docs should probably be updated. They currently tell the user to run:
sudo apt-get install rygel gstreamer0.10-plugins-good \
gstreamer0.10-plugins-bad gstreamer0.10-plugins-ugly \
gstreamer0.10-ffmpeg