flatpak-builder icon indicating copy to clipboard operation
flatpak-builder copied to clipboard

Flatpak-builder --run does not find the shell script

Open H3sm4n opened this issue 4 years ago • 1 comments

Linux distribution and version

Fedora 31

Flatpak-builder version

Version 1.0.10

Flatpak version

Version 1.6.3

Description of the problem & Steps to reproduce

I am trying to run an application after building with the flatpak-builder --run command my command looks like flatpak-builder --run build-dir org.flatpak.manifest.json script.sh whenever I execute that command it shows me bwrap: execvp script.sh no such file or directory

I found a workaround to run to run it with the command flatpak-builder --run build-dir org.flatpak.manifest.json build-dir/files/bin/script.sh after this command my applications shows.

Can anyone tell me what is happening here? I'm curious about the problem since whenever I do ' ls -lash /build-dir/files/bin' the script is located here.

H3sm4n avatar May 31 '20 10:05 H3sm4n

Is script.sh executable and in your flatpak PATH?

flatpak-builder --run build-dir org.flatpak.manifest.json sh
which script.sh

If you can't find it maybe try adding the path to where it's located using the append-path field. Something like:

"build-options" : {
    "append-path" : "/build-dir/files/bin"
}

louib avatar Jan 12 '21 01:01 louib