mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-03 17:56:17 +01: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:
parent
b374cc2e23
commit
92cb02392c
@ -829,10 +829,10 @@ launch_default_with_portal_async (const char *uri,
|
||||
}
|
||||
|
||||
g_dbus_connection_call (session_bus,
|
||||
"org.freedesktop.portal.Desktop",
|
||||
"/org/freedesktop/portal/desktop",
|
||||
"org.freedesktop.portal.OpenURI",
|
||||
"OpenURI",
|
||||
FLATPAK_OPENURI_PORTAL_BUS_NAME,
|
||||
FLATPAK_OPENURI_PORTAL_PATH,
|
||||
FLATPAK_OPENURI_PORTAL_IFACE,
|
||||
FLATPAK_OPENURI_PORTAL_METHOD,
|
||||
g_variant_new ("(ss@a{sv})",
|
||||
parent_window ? parent_window : "",
|
||||
real_uri,
|
||||
|
Loading…
Reference in New Issue
Block a user