Does not delete web app's profile, cache, and config directories when removing web apps
@mcatanzaro
Submitted by Michael Catanzaro Link to original bug (#743485)
Description
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.