Trickle is a command-line tool to throttle network bandwidth of other applications. You use it on the command-line to start the application. It uses LD_PRELOAD
to override network-related calls. As a result, using it with containerized apps, like Flatpak, does not work out of the box.
To get trickle to function with a Flatpak application, the preloaded library needs to be available in the container. And it needs to be compatible with the software in the container (notably, a glibc version that is compatible).
- Install
trickle
on your (host) system, on Debian/Ubuntu that would be apt install trickle
.
- Make sure you have the flatpak application installed. I'm using
com.slack.Slack
as an example here.
- Run the flatpak application with trickle