I’m creating a program that uses DesktopAppInfo.launch_uris_as_managers() to launch a .desktop file. But I want to receive the startup notification to change the mouse cursor from ‘progress’ to ‘default’. I tried by passing a Gio.AppLaunchContext() and connecting the ‘launched’ and ‘launch-failed’ signals, but it seems to not work always: with Thunderbird and Gimp it seems to work, but not with Gedit… (I don’t receive any of the signals).
I’m on Wayland.
What am I doing wrong?