GResourceFile crashes on `g_file_set_display_name()`
This code will crash, due to an unimplemented virtual method:
#include <gio/gio.h>
int main() { return g_file_set_display_name(g_file_new_for_uri("resource:///"), "foo", NULL, NULL); }
Possible solutions:
- Either
g_file_set_display_name()
should check if the method is implemented and returnG_IO_ERROR_NOT_SUPPORTED
itself, - or GResourceFile should implement the method and return that same error.