Function

Gtk-4.0Gtkshow_uri_fullDeprecated 4.10

  • This function launches the default application for showing a given uri.

    The callback will be called when the launch is completed.

    This is the recommended call to be used as it passes information necessary for sandbox helpers to parent their dialogs properly.

    Parameters

    • Deprecatedparent: Gtk.Window

      parent window

    • Deprecateduri: string

      the uri to show

    • Deprecatedtimestamp: number

      timestamp from the event that triggered this call, or GDK_CURRENT_TIME

    • OptionalDeprecatedcancellable: Gio.Cancellable

      a Gio.Cancellable to cancel the launch

    Returns Promise<boolean>

    since 4.10: Use Gtk.FileLauncher.launch or Gtk.UriLauncher.launch instead

  • This function launches the default application for showing a given uri.

    The callback will be called when the launch is completed.

    This is the recommended call to be used as it passes information necessary for sandbox helpers to parent their dialogs properly.

    Parameters

    • Deprecatedparent: Gtk.Window

      parent window

    • Deprecateduri: string

      the uri to show

    • Deprecatedtimestamp: number

      timestamp from the event that triggered this call, or GDK_CURRENT_TIME

    • Deprecatedcancellable: Gio.Cancellable

      a Gio.Cancellable to cancel the launch

    • Deprecatedcallback: AsyncReadyCallback<Gtk.Window>

      a callback to call when the action is complete

    Returns void

    since 4.10: Use Gtk.FileLauncher.launch or Gtk.UriLauncher.launch instead

  • This function launches the default application for showing a given uri.

    The callback will be called when the launch is completed.

    This is the recommended call to be used as it passes information necessary for sandbox helpers to parent their dialogs properly.

    Parameters

    • Deprecatedparent: Gtk.Window

      parent window

    • Deprecateduri: string

      the uri to show

    • Deprecatedtimestamp: number

      timestamp from the event that triggered this call, or GDK_CURRENT_TIME

    • OptionalDeprecatedcancellable: Gio.Cancellable

      a Gio.Cancellable to cancel the launch

    • OptionalDeprecatedcallback: AsyncReadyCallback<Gtk.Window>

      a callback to call when the action is complete

    Returns void | Promise<boolean>

    since 4.10: Use Gtk.FileLauncher.launch or Gtk.UriLauncher.launch instead