We got the plugin working on Flatpak Linux It requires a special build of the source code linked here that you must manually edit and compile, as well as a package called
flatpak-spawn (that you don't need to compile). This code now also contains the GEGL Effects bash build added mid day (dec 31st 2023)Attachment:
If you want Flatpak bash to work for you have to compile and replace "/home/contrast/tmp/" with your username and directory of choice. This is only for flatpak. Non flatpak users don't have to do this. The reason why is because flatpak can't use the /tmp/ directory.
First install flatpak-spawn
sudo dnf install flatpak-spawn
sudo apt install flatpak-spawn
Then download this code and open
bash-buddy.c and
gegleffectspending.cthen replace
/home/contrast/tmp/in.png and
/home/contrast/tmp/out.png with whatever directory in your own home you like such as this example.
/home/john/eggs/in.png /home/john/eggs/out.pngImage shows this "search and replace" process.
Attachment:
this_is_the_way_to_do_it.png [ 4.94 KiB | Viewed 13631 times ]
then compile by running build_linux.sh and put the file in /home/(USERNAME)/.var/app/org.gimp.GIMP/data/gegl-0.4/plug-ins
and restart Gimp and go to GEGL operations.
then if that is the case a command like
flatpak-spawn --host rembg i /home/john/eggs/in.png /home/john/eggs/out.png
will work. Consider making the directory short as possible. It CANNOT use /tmp/
Lastly if you only want the bash AI plugin without GEGL Effects. Ignore all binaries but
bash-buddy and
spawn if you want GEGL Effects make use of all the binaries.