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:
Mario Sanchez Prada 2017-03-23 14:46:02 +00:00
parent b374cc2e23
commit 92cb02392c

View File

@ -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,