Bug 114391 - .wav files are stored in ~/.config/libreoffice/4/user/gallery/ instead of ~/.cache/libreoffice
Summary: .wav files are stored in ~/.config/libreoffice/4/user/gallery/ instead of ~/....
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Impress (show other bugs)
Version:
(earliest affected)
4.2.8.2 release
Hardware: All Linux (All)
: low enhancement
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Gallery
  Show dependency treegraph
 
Reported: 2017-12-10 19:33 UTC by Jérôme
Modified: 2020-12-22 12:25 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jérôme 2017-12-10 19:33:52 UTC
When I read slideshow which contains sounds, then the sound files are stored in ~/.config/libreoffice/4/user/gallery/ .

Could it be stored into ~/.cache/libreoffice/ ?
Comment 1 Buovjaga 2017-12-18 17:30:16 UTC
Discussed with Cloph and he thought this is a valid request.
I do not have any LibreOffice stuff in my .cache so apparently it is not used at the moment for anything.
Comment 2 Jean-Baptiste Faure 2017-12-18 22:15:35 UTC
(In reply to Jérôme from comment #0)
> When I read slideshow which contains sounds, then the sound files are stored
> in ~/.config/libreoffice/4/user/gallery/ .
> 
> Could it be stored into ~/.cache/libreoffice/ ?

Why ? Please could you elaborate ?

Best regards. JBF
Comment 3 Jérôme 2017-12-19 19:45:36 UTC
See https://specifications.freedesktop.org/basedir-spec/basedir-spec-0.6.html

Basically, the backup tools usually exclude the ~/.cache user directory. Moreover, when the user wants to save space, then he/she can delete the ~/.cache user directory but keep his/her user preferences.
Comment 4 Jean-Baptiste Faure 2017-12-23 22:10:38 UTC
(In reply to Jérôme from comment #0)
> When I read slideshow which contains sounds, then the sound files are stored
> in ~/.config/libreoffice/4/user/gallery/ .

Are you sure ? I do not see any new file in this directory when reading a slideshow with sound. Tested with LO 5.4.3 from Ubuntu PPA.

Best regards. JBF
Comment 5 Jérôme 2017-12-26 18:46:10 UTC
Did you tried ppt files ?
Comment 6 Jean-Baptiste Faure 2017-12-29 20:17:30 UTC
(In reply to Jérôme from comment #5)
> Did you tried ppt files ?

No. Do that things exist anymore? 
If you have one, you should attach it to this bug report as test file. Of course take care to eliminate all personal data from the file. 

Best regards. JBF
Comment 7 Jérôme 2017-12-30 11:20:24 UTC
If you download the first pps slideshow here :
https://www.crazy-stuff.net/fr/divertissements/diaporamas/noel-pour-les-enfants

then you will get a Christmass slideshow with a song in Impress which is extracted into the ~/.config/libreoffice/4/user/gallery/*.wav file.

I noticed the problem with an older LO version too.
Comment 8 Jérôme 2017-12-30 13:24:43 UTC
This bug still occurs on 5.2.7.2 version.
Comment 9 Jean-Baptiste Faure 2017-12-30 21:52:37 UTC
(In reply to Jérôme from comment #7)
> If you download the first pps slideshow here :
> https://www.crazy-stuff.net/fr/divertissements/diaporamas/noel-pour-les-
> enfants
> 
> then you will get a Christmass slideshow with a song in Impress which is
> extracted into the ~/.config/libreoffice/4/user/gallery/*.wav file.

Confirmed with LO 5.4.4 from Ubuntu PPA. From my point of view, the main problem is that these temporary files are not removed when the slideshow is closed.

Best regards. JBF
Comment 10 Jérôme 2020-12-22 12:25:06 UTC
(In reply to Jean-Baptiste Faure from comment #9)
> (In reply to Jérôme from comment #7)
> > If you download the first pps slideshow here :
> > [...]
> > then you will get a Christmass slideshow with a song in Impress which is
> > extracted into the ~/.config/libreoffice/4/user/gallery/*.wav file.
> 
> [...] the main
> problem is that these temporary files are not removed when the slideshow is
> closed.

The problem is that ~/.config and ~/.cache have possibly a different underlying configuration.

~/.cache : usually a local storage, possibly on memory or reused disk

~/.config : on a reliable storage, possibly over the network (latency, ...)

The files could be removed automatically but they have first to be stored into the right file directory.