mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-21 08:28:53 +02:00
appinfo: Don't hardcode strings for the OpenURI portal's D-Bus method
We added several #define in the previous commit, so use those instead.
This commit is contained in:
@@ -829,10 +829,10 @@ launch_default_with_portal_async (const char *uri,
|
|||||||
}
|
}
|
||||||
|
|
||||||
g_dbus_connection_call (session_bus,
|
g_dbus_connection_call (session_bus,
|
||||||
"org.freedesktop.portal.Desktop",
|
FLATPAK_OPENURI_PORTAL_BUS_NAME,
|
||||||
"/org/freedesktop/portal/desktop",
|
FLATPAK_OPENURI_PORTAL_PATH,
|
||||||
"org.freedesktop.portal.OpenURI",
|
FLATPAK_OPENURI_PORTAL_IFACE,
|
||||||
"OpenURI",
|
FLATPAK_OPENURI_PORTAL_METHOD,
|
||||||
g_variant_new ("(ss@a{sv})",
|
g_variant_new ("(ss@a{sv})",
|
||||||
parent_window ? parent_window : "",
|
parent_window ? parent_window : "",
|
||||||
real_uri,
|
real_uri,
|
||||||
|
Reference in New Issue
Block a user