Seems to work but, when I try to program a Digispark board, I get an error "error while loading shared libraries: libusb-0.1.so.4: cannot open shared object file: No such file or directory". The library is installed in /lib/x86_64-linux-gnu/ and permissions are fine.
It works when programming via FT232 board, but when I plug in my Arduino Leonardo directly and upload any script it breaks the Arduino Leonardo bootloader. After this the Arduino Leonardo doesn't show up in the /dev/tty* list. The program also does not see any mounted partitions besides the File System partition. When opening files in a mouned partition, it fails to open. I suspect these partition issues are present in most flatpack packages.