After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 743485 - Do not delete web app's profile or cache directories when removing web apps
Do not delete web app's profile or cache directories when removing web apps
Status: RESOLVED OBSOLETE
Product: gnome-software
Classification: Applications
Component: General
3.18.x
Other Linux
: Normal normal
: ---
Assigned To: GNOME Software maintainer(s)
GNOME Software maintainer(s)
: 711770 (view as bug list)
Depends on:
Blocks: 771597
 
 
Reported: 2015-01-25 15:38 UTC by Michael Catanzaro
Modified: 2018-01-24 16:55 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Michael Catanzaro 2015-01-25 15:38:41 UTC
When I delete a web app with GNOME Software, it just changes the desktop file from NoDisplay=false to NoDisplay=true.

When I delete a web app with Epiphany, it deletes the app's desktop file and also deletes its profile directory, so that the user's cookies, localstorage, history, etc. isn't kept on disk forever. For example, if the desktop file has the following Exec line:

Exec=epiphany --application-mode --profile="/home/mcatanzaro/.config/epiphany/app-epiphany-duolingo-55f0d44bf9217fa2c4eaf7c958f50dcd257d4e05" https://www.duolingo.com/

Then the directories /home/mcatanzaro/.config/epiphany/app-epiphany-duolingo-55f0d44bf9217fa2c4eaf7c958f50dcd257d4e05 and $XDG_CACHE_DIR/app-epiphany-duolingo-55f0d44bf9217fa2c4eaf7c958f50dcd257d4e05 should be recursively deleted when removing the web app.

This, of course, would conflict with Software's desire to keep the empty profile directory around with app-icon.png so that it can continue to display it in search results. At least everything except the app icon should be deleted.
Comment 1 Matthias Clasen 2015-08-08 16:20:12 UTC
*** Bug 711770 has been marked as a duplicate of this bug. ***
Comment 2 Michael Catanzaro 2015-08-08 20:22:53 UTC
I guess the easy solution is:

* Teach GNOME Software to delete those directories.
* Teach Epiphany to ignore web apps with NoDisplay=true for about:applications.
Comment 3 Richard Hughes 2016-02-23 09:05:11 UTC
Are we sure we want to nuke all the profile info? I mean it would be useful to keep my logins around and it's not really that much space.
Comment 4 Michael Catanzaro 2016-02-23 12:55:29 UTC
What do you think, Carlos?

It would not be that much space if not for adblock filters stored redundantly in each profile dir (1.7 MB per web app, bug #755379).

On the other hand, it clutters the config dir unnecessarily. I don't think there's much value in keeping old profile dirs.
Comment 5 Carlos Garcia Campos 2016-02-23 12:59:47 UTC
I think it makes sense to not delete the profile dir, the same way when you uninstall a program the config dir is not removed either.
Comment 6 Michael Catanzaro 2016-02-23 13:29:26 UTC
In that case, reassigning to Epiphany. We should add the line NoDisplay=true when "uninstalling" a web app, and remove it when "reinstalling" it.
Comment 7 Michael Catanzaro 2016-09-17 17:49:44 UTC
(In reply to Carlos Garcia Campos from comment #5)
> I think it makes sense to not delete the profile dir, the same way when you
> uninstall a program the config dir is not removed either.

Hm, I don't agree with this anymore. Deleting a web app should be clean slate; users probably expect removing a web app to remove all trace of it on disk. Reassigning back to Software.
Comment 8 GNOME Infrastructure Team 2018-01-24 16:55:15 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to GNOME's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/gnome-software/issues/21.