added flatpak uninstall --unused -y to flatpak update script, tested with Tails 6.10 authored by about:privacy's avatar about:privacy
_This guide has been tested with Tails OS versions **6.6** and will not work on Tails 5.xx, so please make sure you are using an [**up to date Tails** OS](https://tails.net/doc/upgrade/)_. _This guide has been tested with Tails OS versions **6.10** and will not work on Tails 5.xx, so please make sure you are using an [**up to date Tails** OS](https://tails.net/doc/upgrade/)_.
*This howto uses [Flatpak](https://flatpak.org) to install Signal and keep it confined.* *This howto uses [Flatpak](https://flatpak.org) to install Signal and keep it confined.*
...@@ -59,7 +59,7 @@ If you want to keep Signal Desktop persistent, we need to set up the persistent ...@@ -59,7 +59,7 @@ If you want to keep Signal Desktop persistent, we need to set up the persistent
~~~ ~~~
4. If you haven't done it already while installing another Flatpak from this HowTo, create a Desktop shortcut for conveniently updating Flatpak managed applications, executing the following in the terminal: 4. If you haven't done it already while installing another Flatpak from this HowTo, create a Desktop shortcut for conveniently updating Flatpak managed applications, executing the following in the terminal:
~~~ ~~~
echo -e '[Desktop Entry]\nType=Application\nName=Flatpak-Update\nExec=bash -c "/usr/bin/torsocks /usr/bin/flatpak update -y"\nTerminal=true\nCategories=Network\nMimeType=x-scheme-handler/element;\nStartupWMClass=flatpak\nKeywords=flatpak;update;' | tee ~/.local/share/applications/Flatpak-Update.desktop echo -e '[Desktop Entry]\nType=Application\nName=Flatpak-Update\nExec=bash -c "/usr/bin/torsocks /usr/bin/flatpak update -y && /usr/bin/flatpak uninstall --unused -y"\nTerminal=true\nCategories=Network\nStartupWMClass=flatpak\nKeywords=flatpak;update;' | tee ~/.local/share/applications/Flatpak-Update.desktop
~~~ ~~~
A new application called **"Flatpak-Update"** is now visible in the [Activities Overview](https://tails.net/doc/first_steps/desktop/index.en.html#activities). You should run it regularly to update your Flatpak applications. A new application called **"Flatpak-Update"** is now visible in the [Activities Overview](https://tails.net/doc/first_steps/desktop/index.en.html#activities). You should run it regularly to update your Flatpak applications.
5. Close the terminal 5. Close the terminal
... ...
......