elementary / elementary/portals

Portal for housekeeping

Open
#42 2 comments 3 reactions 0 assignees View on GitHub
Dominant language
Vala
Stars
24
Forks
7
PR merge metrics
No merged PRs in 30d

Description

## Problem

Currently housekeeping with flatpaks only effect trashed files, but that isn't the only thing housekeeping already has as a feature.

## Proposal

Create a portal for the system to housekeep apps' cache and tmp files under their name in the `~/.var/app/` directory. The user and the system already have access to those files; I image that developers could have some kind of flag either in the .desktop (or elsewhere) saying that their app can be housekept by providing a location of temporary files.
Of course there is the obvious 'nuke cache folder' option _(by completely emptying the pictured dir.)_, which could potentially be harmful, hence why it should be opt-in
![スクリーンショット 2021-05-25 07 49 25](https://user-images.githubusercontent.com/58219504/119460092-d6366880-bd2d-11eb-9861-fe983cec1302.png)

To be fair, I'm not sure if this even needs to be a portal - could't there be an OS component that manually removes these files that are flagged as 'housekeepable'?

## Prior Art


![スクリーンショット 2021-05-25 07 56 09](https://user-images.githubusercontent.com/58219504/119461484-44c7f600-bd2f-11eb-8d80-1f31b7c6456b.png)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.