Exporting a bundle fails with freshly setup python GTK4 project
When I set up a fresh python project in GNOME builder, the bundle export fails with error message:
Not exporting share/applications/mimeinfo.cache, wrong extension
Exporting share/applications/io.github.johannesjh.testp.desktop
error: regfile copy: Invalid argument
Background: I am creating this issue based on the thread in GNOME discourse Use GNOME Builder to build and run a project on a mobile device. The initial post seems to suggest that the problem has to do with a specific scenario involving mobile devices. In my experience however, the problem is general and easy to reproduce.
Details on how to reproduce, copied over from GNOME discourse into this ticket for future reference:
- I am using GNOME Builder 42.alpha1 flatpak nightly
- I start a new python GTK4 project using GNOME Builders "Start new Project" screen
- A progress bar starts running to download SDKs, but stops running after about 30% of progress.
- The build information in the window bar displays: "Runtime missing. There is a problem with your current build configuration". I can solve this issue by going into the build preferences and selecting a runtime. In this case, I chose flatpak org.gnome.Platform 41. As a result, the runtime version changes from "master" to "41" in the flatpak builder json file.
- Initial success: Now the app builds successfully and I can run the app by clicking the play button.
- Subsequent problem: Exporting a bundle fails with the same error message:
Not exporting share/applications/mimeinfo.cache, wrong extension
Exporting share/applications/io.github.johannesjh.testp.desktop
error: regfile copy: Invalid argument
Full buildlog attached, see buildlog.txt