Runic.Platform.Linux.Gtk4
0.12.0
See the version list below for details.
dotnet add package Runic.Platform.Linux.Gtk4 --version 0.12.0
NuGet\Install-Package Runic.Platform.Linux.Gtk4 -Version 0.12.0
<PackageReference Include="Runic.Platform.Linux.Gtk4" Version="0.12.0" />
<PackageVersion Include="Runic.Platform.Linux.Gtk4" Version="0.12.0" />
<PackageReference Include="Runic.Platform.Linux.Gtk4" />
paket add Runic.Platform.Linux.Gtk4 --version 0.12.0
#r "nuget: Runic.Platform.Linux.Gtk4, 0.12.0"
#:package Runic.Platform.Linux.Gtk4@0.12.0
#addin nuget:?package=Runic.Platform.Linux.Gtk4&version=0.12.0
#tool nuget:?package=Runic.Platform.Linux.Gtk4&version=0.12.0
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 | Versions 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. |
-
net10.0
- Runic.Platform.Runtime (= 0.12.0)
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.12.1 | 0 | 10/27/2026 |
| 0.12.0 | 0 | 10/27/2026 |
| 0.11.0 | 1,976 | 10/25/2026 |
| 0.10.0 | 4,015 | 10/22/2026 |
| 0.9.1 | 623 | 10/21/2026 |
| 0.9.0 | 137 | 10/21/2026 |
| 0.8.0-preview.6 | 1,085 | 10/19/2026 |
| 0.8.0-preview.5 | 348 | 10/17/2026 |
| 0.8.0-preview.4 | 814 | 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 | 72 | 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 |