Registry cache for separate users?
The generated registry ends up in a file with restricted access where only current user may read/write (i.e. 0600). The registry should be able to be shared between different Gstreamer applications, on a desktop where one user logs in and uses different applications this will work with current setup.
From an embedded system perspective where different daemons runs with separate users the restricted permissions on the registry will force all daemons to create their own cache. We would like them to be able to share the registry to save both storage and CPU performance.
Is there a special reasoning behind setting up the registry cache as non-readable by group and others? Anyone remembers reasoning behind 5cdcdaee ?
The simplest idea of sharing registry between different users is to setup the file as readable by all. If so, all users can read current registry to check if still valid and if so use it. If not valid, the user may regenerate the cache and write the new file which would work since the user does not write directly into existing file (that it lacks permissions to do), instead replaces it with a new file.
Here is quick patch for changing the permissions when file is replaced. Would this be OK? robberos/gstreamer@c34f2b38
Any insights, ideas, thoughts?