GLib plus GIO fails because of fchown. snapcraft-preload ineffective

Reproducing:

  1. clone https://github.com/diddledan/snapcraft-preload-glib-test
  2. build and install the snap
  3. run the command glib-test TWICE

The first run creates the test file, which works, and the second run attempts to rewrite it, which fails.

The error is related to GIO’s g_file_replace() function. Using snapcraft-preload does not fix the problem. This is preventing the GIMP beta from working successfully.

cc/ @sergiusens

Any suggestions on working around this or why the preload is ineffectual?

Please can someone look at this and report back?

Still waiting on someone to look at this :slight_smile:

Thanks for the snap! Please see: Chown to current user

I’m marking this topic as answered. Please follow along in the other topic.