The cause of the issue lies in using g_app_info_get_executable(…) in combination with g_spawn_command_line_async(…) to launch the application associated with the desktop file.
The proper way of launching the application is to invoke g_app_info_launch(…). This will require modifying the way shortcuts are stored to keep a reference to the desktop file id instead of just the executable.
The cause of the issue lies in using g_app_info_ get_executable( …) in combination with g_spawn_ command_ line_async( …) to launch the application associated with the desktop file.
The proper way of launching the application is to invoke g_app_info_ launch( …). This will require modifying the way shortcuts are stored to keep a reference to the desktop file id instead of just the executable.