You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However, with the migration to flatpak most apps now store temporary files in "sandboxed" locations. These typically include either $XDG_RUNTIME_DIR/app/$FLATPAK_ID, which is deleted on app exit, or $XDG_CACHE_HOME/tmp which is not cleaned automatically. This can lead to false sense of security for users who have enabled housekeeping options.
Proposal
The $XDG_CACHE_HOME/tmp location (inside flatpak sandbox) is actually located at ~/.var/app/$FLATPAK_ID/cache/tmp on the host. We could cover these folders with one extra line in the tempfiles config file already created by the settings daemon.
Alternatively, this same feature could be set up by apps that use this particular tmp folder (see this commit for an example). However, this approach has 2 significant drawbacks (that I can think of):
Users would need to trust apps to set up housekeeping for their own tmp directories.
Creating the config file from the app side requires the --filesystem=xdg-config/user-tmpfiles.d permission.
Prior Art (Optional)
I think all other temporary directories are already covered.
The text was updated successfully, but these errors were encountered:
Problem
Currently
SettingsDaemon.Backends.Housekeeping
configures systemd-tmpfiles to clean up users' Downloads folder. In addition to old temporary files and trashed files this seemingly covers all locations mentioned in the Housekeeping pannel.However, with the migration to flatpak most apps now store temporary files in "sandboxed" locations. These typically include either
$XDG_RUNTIME_DIR/app/$FLATPAK_ID
, which is deleted on app exit, or$XDG_CACHE_HOME/tmp
which is not cleaned automatically. This can lead to false sense of security for users who have enabled housekeeping options.Proposal
The
$XDG_CACHE_HOME/tmp
location (inside flatpak sandbox) is actually located at~/.var/app/$FLATPAK_ID/cache/tmp
on the host. We could cover these folders with one extra line in the tempfiles config file already created by the settings daemon.Alternatively, this same feature could be set up by apps that use this particular tmp folder (see this commit for an example). However, this approach has 2 significant drawbacks (that I can think of):
--filesystem=xdg-config/user-tmpfiles.d
permission.Prior Art (Optional)
I think all other temporary directories are already covered.
The text was updated successfully, but these errors were encountered: