On Tue, Mar 13, 2018 at 08:37:28PM -0500, Simon Quigley wrote: > One thing I would like you to try (to see if this does indeed work) is > to install the voice packages in /usr/share/gcompris-qt/boards/voices/ > (just like the old voice packages did, but manually).
Yes, it works; tested in a Debian Edu Buster multi-user environment with manually downloaded voices-<language code>.rcc files plus the Contents index file placed in the proposed directory. > What I'm trying to see here is if I can package these and they will Just > Work, or if I need to do some magic within the GCompris-Qt code itself. Well, some magic would be welcome. With the voices files available in /usr/share/gcompris-qt/boards/voices/ users wouldn't have to download them (coming in handy in places with poor net connectivity or other restrictions), but the voices files are cached in addition in each user's home directory in this place: $HOME/.cache/KDE/gcompris-qt/data2/voices-ogg/ So as far as disk space is concerned, it makes no difference. Also, a lot of files are stored in a user's subdir $HOME/.cache/KDE/gcompris-qt/qmlcache/ This is what I was able to find out: Providing a file /etc/X11/Xsession.d/07debian-edu-gcompris-qt with content: QML_DISABLE_DISK_CACHE=1 export QML_DISABLE_DISK_CACHE=1 would avoid caching the QML files for all users. To avoid caching the voices files I modified each single user's $HOME/.config/gcompris/gcompris-qt.conf file (Admin section): [Admin] cachePath=/dev/null This worked, but it would be nice if a smarter solution could be found to set the cache path system wide (maybe via preseeding the package or modifying a default cache path in a central place). Wolfgang
signature.asc
Description: PGP signature