Page 1 of 1

vlc.config.userdatadir replacement for service discovery?

Posted: 18 Jun 2018 21:53
by roland1
Does anybody have a list of directories vlc might use as userdatadir (on different systems)?

Re: vlc.config.userdatadir replacement for service discovery?

Posted: 19 Jun 2018 00:10
by Jean-Baptiste Kempf
What for?

Re: vlc.config.userdatadir replacement for service discovery?

Posted: 19 Jun 2018 19:28
by roland1
It is for the mediathek sd script.
There, persistence is needed (queries are persistent, database is also cached).
In sd scripts (environment) vlc.config is nil, so, in absence of vlc.config.userdatadir
I am about to build some search path (atm it is only ~/.local/share/vlc),
s.t. other systems can also run mediathek.

Re: vlc.config.userdatadir replacement for service discovery?

Posted: 19 Jun 2018 23:53
by Jean-Baptiste Kempf
Why is persistence needed for mediathek?

Re: vlc.config.userdatadir replacement for service discovery?

Posted: 20 Jun 2018 21:06
by roland1
For comfort! :)
After one-click activation of mediathek it populates all my past queries and I can browse through it. The screenshot at https://addons.videolan.org/p/1241457/ shows a playlist set up prior to activation through the search field (not hardcoded).
There are also minor reasons for caching as the database in use is availalable as .xz for download, decompressed size > 100 MB, size of Lua table'd be > 300 MB.
But, of course caching could be done elsewhere (e.g. os.getenv"TMPDIR" or os.getenv"TEMP" or os.getenv"TMP" or "/tmp".)
Disclaimer: This is not a request for having vlc.config available for sd scripts.
Thanks for reading.

Re: vlc.config.userdatadir replacement for service discovery?

Posted: 22 Jun 2018 00:01
by Jean-Baptiste Kempf
Disclaimer: This is not a request for having vlc.config available for sd scripts.
Is it not? :D