GLib merge requestshttps://gitlab.gnome.org/GNOME/glib/-/merge_requests2018-12-18T16:38:06Zhttps://gitlab.gnome.org/GNOME/glib/-/merge_requests/543WIP: gfile: Fallback to local path for unknown schemes2018-12-18T16:38:06ZOndrej HolyWIP: gfile: Fallback to local path for unknown schemes`g_file_new_for_cmd_path()` doesn't handle files with colons ideally:
```
$ touch foo:bar
$ gio info foo:bar
gio: foo:///bar: The specified location is not supported
```
Just a note that `./foo:bar`, `~/foo:bar` or `file:///foo...`g_file_new_for_cmd_path()` doesn't handle files with colons ideally:
```
$ touch foo:bar
$ gio info foo:bar
gio: foo:///bar: The specified location is not supported
```
Just a note that `./foo:bar`, `~/foo:bar` or `file:///foo:bar` works
properly. With this patch, the file info is shown even for `foo:bar`
when `foo` isn't supported scheme.
Side-effect of this patch is that operations will fail with "No such
file or directory" if the local file doesn't exist as well instead of
"The specified location is not supported" (ie. with `G_IO_ERROR_NOT_FOUND`
instead of `G_IO_ERROR_NOT_SUPPORTED`)...
https://gitlab.gnome.org/GNOME/glib/issues/1623https://gitlab.gnome.org/GNOME/glib/-/merge_requests/789gfile: Prevent hangs when copying on CIFS2020-06-17T09:22:09ZOndrej Holygfile: Prevent hangs when copying on CIFSPrevent usage of splice() on CIFS as it causes hangs in some cases,
see https://bugzilla.kernel.org/show_bug.cgi?id=198349 for more info.
Closes: https://gitlab.gnome.org/GNOME/glib/issues/1246Prevent usage of splice() on CIFS as it causes hangs in some cases,
see https://bugzilla.kernel.org/show_bug.cgi?id=198349 for more info.
Closes: https://gitlab.gnome.org/GNOME/glib/issues/1246https://gitlab.gnome.org/GNOME/glib/-/merge_requests/2082gio/file: add constructor annotations2022-01-26T13:40:44ZFrançois Laignelgio/file: add constructor annotationsWorking on the Rust bindings, [we noticed](https://github.com/gtk-rs/gtk-rs/issues/502) that the functions
which create a `File` were identified as "function"s instead of
"constructor"s in `Gio-2.0.gir`.Working on the Rust bindings, [we noticed](https://github.com/gtk-rs/gtk-rs/issues/502) that the functions
which create a `File` were identified as "function"s instead of
"constructor"s in `Gio-2.0.gir`.2.71.1https://gitlab.gnome.org/GNOME/glib/-/merge_requests/1795WIP: glocalfile: Add x-gvfs-notrash cache2023-07-09T18:03:17ZOndrej HolyWIP: glocalfile: Add x-gvfs-notrash cacheThe `g_unix_mount_get` function is called each time when querying info, or
enumerating dir. It seems that it causes performance issues in some cases
on some platforms for certain `g_unix_mount_get` implementations, see
GNOME/glib!1707. T...The `g_unix_mount_get` function is called each time when querying info, or
enumerating dir. It seems that it causes performance issues in some cases
on some platforms for certain `g_unix_mount_get` implementations, see
GNOME/glib!1707. The `g_unix_mount_get` call was introduced by the commit
4602a5e and commit 4602a5e, which are needed to set the `access::can-trash`
attribute now. Let's use the already existing mount cache to improve the
performance in this case.