Using a Gio.DesktopAppinfo().launch with context freezes GJS

Bug #1986522 reported by Sundeep
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
gjs (Ubuntu)
New
Undecided
Unassigned

Bug Description

Creating a Gio.DesktopAppInfo for a desktopfile, then launching with an app_launch context freezes GJS. Launching with context set to null works. There is no debug information on the console.

Using Gtk4

Here is the relevant code-

let desktopFile = Gio.DesktopAppInfo.new('gnome-background-panel.desktop');
const context = Gdk.Display.get_default().get_app_launch_context();
context.set_timestamp(Gdk.CURRENT_TIME);
// Fix me, context in the following causes a crash;
desktopFile.launch([], context)

Revision history for this message
Marco Trevisan (Treviño) (3v1n0) wrote :

It seems the problem is quite old, let's move at https://gitlab.gnome.org/GNOME/gjs/-/issues/553

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.