Runic.Platform.Linux.Gtk4 0.11.0

dotnet add package Runic.Platform.Linux.Gtk4 --version 0.11.0
                    
NuGet\Install-Package Runic.Platform.Linux.Gtk4 -Version 0.11.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Runic.Platform.Linux.Gtk4" Version="0.11.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Runic.Platform.Linux.Gtk4" Version="0.11.0" />
                    
Directory.Packages.props
<PackageReference Include="Runic.Platform.Linux.Gtk4" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Runic.Platform.Linux.Gtk4 --version 0.11.0
                    
#r "nuget: Runic.Platform.Linux.Gtk4, 0.11.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Runic.Platform.Linux.Gtk4@0.11.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Runic.Platform.Linux.Gtk4&version=0.11.0
                    
Install as a Cake Addin
#tool nuget:?package=Runic.Platform.Linux.Gtk4&version=0.11.0
                    
Install as a Cake Tool

Runic.Platform.Linux.Gtk4

GTK 4 services for a Runic application with an explicitly selected GTK 4 desktop host.

The package has no public API. Runic.Application.Views.Desktop creates its services for each GTK 4 window from DesktopPlatformServices.ForWindow and services.AddRunicPlatformServices(): the clipboard, which keeps its work on the window's dispatcher, and the portal parent, which exports only valid GTK 4 X11 or Wayland parent identifiers for Runic.Platform.Linux.Portal's file dialogs and file handoff. It never exposes a raw window pointer or silently changes an owned request into an unparented request.

The clipboard is also an IDesktopClipboard. HTML and RTF are read as their MIME types' bytes through gdk_clipboard_read_async, in 64 KiB chunks up to the bound; images through gdk_clipboard_read_texture_async, which converts every image format GDK reads, saved as PNG (gdk_texture_save_to_png_bytes, GTK 4.6); files through gdk_clipboard_read_value_async with GDK_TYPE_FILE_LIST, which also takes the FileTransfer portal's application/vnd.portal.filetransfer in a Flatpak. A write sets one union content provider of every format, files as a GDK_TYPE_FILE_LIST value that GDK offers as text/uri-list, x-special/gnome-copied-files and through the portal. The watch is the clipboard's changed signal.

Message boxes are GtkAlertDialogs (GTK 4.10 and later), modal for the window and answered through gtk_alert_dialog_choose with a GCancellable, which cancellation cancels. Its buttons take _ mnemonics, in GNOME's order; the default and cancel buttons are the dialog's, so Return and Esc choose them, and Esc without a cancel button dismisses the box with null. An alert dialog has no title, icon or destructive style and follows the application's text direction. The GTK 4 smoke's --message-boxes mode checks them under Xvfb with JIT and NativeAOT.

This package requires GTK 4.12 or later on Linux. On Wayland, it uses GTK's exported-handle API and releases the handle when the portal request lease is disposed.

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on Runic.Platform.Linux.Gtk4:

Package Downloads
Runic.Application.Views.Desktop

Runic Window and View host adapter for Runic Desktop.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.11.0 1,181 10/25/2026
0.10.0 4,012 10/22/2026
0.9.1 621 10/21/2026
0.9.0 136 10/21/2026
0.8.0-preview.6 1,085 10/19/2026
0.8.0-preview.5 347 10/17/2026
0.8.0-preview.4 812 10/17/2026
0.8.0-preview.3 766 10/15/2026
0.8.0-preview.2 124 10/15/2026
0.8.0-preview.1 169 10/15/2026
0.7.0-preview.9 513 10/14/2026
0.7.0-preview.8 101 10/12/2026
0.7.0-preview.7 70 10/12/2026
0.7.0-preview.6 415 10/9/2026
0.7.0-preview.5 136 10/9/2026
0.7.0-preview.4 79 10/8/2026
0.7.0-preview.3 63 10/8/2026
0.7.0-preview.2 72 10/7/2026
0.7.0-preview.1 66 10/7/2026
0.6.0-preview.1 601 10/5/2026
Loading failed