label: Use GtkFileLauncher for file URI
authorMatthias Clasen <mclasen@redhat.com>
Thu, 16 Mar 2023 20:06:49 +0000 (16:06 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Thu, 16 Mar 2023 20:06:49 +0000 (16:06 -0400)
commit18f91df7d8cc072e5a54404878c9b5696850ac14
treea3d2785d353697f5852d16d4e3ac630fe4b27956
parentcf332e2efac6ad7acef72eef84221081c7d7aa17
label: Use GtkFileLauncher for file URI

The GtkUriLauncher calls into the openuri portal, which distinguishes
between files, directories, and URI. The GtkFileLauncher contains logic
to deal with this, because it can already handle the file and folder
differences.

If we have a file:// URI it's easier to create a GFile out of it, and
use the GtkFileLauncher API, while leaving the GtkUriLauncher API for
every other URI scheme.

Same fix as de3c1d0c73987225869908, for GtkLabel.

Fixes: #5671
gtk/gtklabel.c