xdg-activation support in OpenURI portal is pretty much broken
ilya-fedin opened this issue · 2 comments
ilya-fedin commented
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.
xdg-desktop-portal/src/open-uri.c
Line 278 in efd2374
Steps to Reproduce
- Use OpenURI/OpenFile with activation token set
Anything else we should know?
No response
swick commented
GeorgesStavracas commented
Fixed by #1332