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>
Fri, 21 Apr 2023 06:17:35 +0000 (08:17 +0200)
commit28e56d0dde37679db6372408fa6e71e3f8c7f190
treedb253f6c757af1af042b56dc5e90dcca807f26b8
parent6a797f6b1a52a68eebd29521f9e020101774c86e
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