flatpak/xdg-desktop-portal

xdg-activation support in OpenURI portal is pretty much broken

ilya-fedin opened this issue · 2 comments

Operating System

NixOS

XDG Desktop Portal version

1.18

XDG Desktop Portal version (Other)

No response

Desktop Environment

KDE

Desktop Environment (Other)

No response

Expected Behavior

I expect xdg-desktop-portal to override the Gio::AppLaunchContext::get_startup_notify_id vfunc that does the right (1, 2) thing...

Current Behavior

g_app_launch_context_setenv is used that doesn't work with dbus activation... And gtk seem to lack non-dbus xdg-activation interop support (reading only DESKTOP_STARTUP_ID but not XDG_ACTIVATION_TOKEN). So it's completely broken when starting gtk applications, both via dbus and process execution.

g_app_launch_context_setenv (context, "XDG_ACTIVATION_TOKEN", activation_token);

Steps to Reproduce

  1. Use OpenURI/OpenFile with activation token set

Anything else we should know?

No response