Skip to content

Migrate Linux GTK4 packages from Maui.Gtk to dotnet/maui-labs#161

Merged
Redth merged 2 commits intomainfrom
feature/maui-labs-linux-gtk4
Apr 24, 2026
Merged

Migrate Linux GTK4 packages from Maui.Gtk to dotnet/maui-labs#161
Redth merged 2 commits intomainfrom
feature/maui-labs-linux-gtk4

Conversation

@Redth
Copy link
Copy Markdown
Owner

@Redth Redth commented Apr 22, 2026

Summary

Migrate Linux GTK4 support from community packages (Platform.Maui.Linux.Gtk4 from redth/Maui.Gtk) to official packages (Microsoft.Maui.Platforms.Linux.Gtk4 from dotnet/maui-labs).

Changes

  • nuget.config: Added dotnet10 Azure DevOps NuGet feed
  • MauiSherpa.LinuxGtk.csproj: Updated 3 package references to new names with floating preview versions
  • ~34 source files: Updated namespaces (Platform.Maui.Linux.Gtk4Microsoft.Maui.Platforms.Linux.Gtk4)
  • README.md: Updated acknowledgment link to dotnet/maui-labs
  • .gitignore: Added nohup.out

Package Mapping

Old New
Platform.Maui.Linux.Gtk4 Microsoft.Maui.Platforms.Linux.Gtk4
Platform.Maui.Linux.Gtk4.BlazorWebView Microsoft.Maui.Platforms.Linux.Gtk4.BlazorWebView
Platform.Maui.Linux.Gtk4.Essentials Microsoft.Maui.Platforms.Linux.Gtk4.Essentials

Known Issue

The current preview packages have a heap corruption bug caused by premature Graphene.Point.Free() calls in GtkLayoutPanel.cs and GtkViewHandler.cs. Fix submitted as dotnet/maui-labs#132.

The app will crash at launch until that fix is included in a new package version. DevFlow GTK packages are also commented out pending an update to the new package names.

Notes

  • DevFlow GTK packages temporarily disabled (need update for new namespaces)
  • NuGet feed URL: https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet10/nuget/v3/index.json

Redth and others added 2 commits April 22, 2026 12:59
Switch from community packages (Platform.Maui.Linux.Gtk4 from
nicoleeldridge/Maui.Gtk) to official packages (Microsoft.Maui.Platforms.Linux.Gtk4
from dotnet/maui-labs), published to the dotnet10 Azure DevOps NuGet feed.

Changes:
- Add dotnet10 NuGet feed to nuget.config
- Update 3 package references in MauiSherpa.LinuxGtk.csproj
- Update namespaces across ~34 files
- Remove local ProjectReference fallback from csproj
- Comment out DevFlow GTK packages (need update for new package names)
- Update README acknowledgment link to dotnet/maui-labs

Note: The current preview packages have a heap corruption bug triggered
by BlazorWebView + ZIndex combinations. Fix submitted as
dotnet/maui-labs#132 (Graphene.Point.Free() use-after-free).

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
…ruption fix)

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@Redth Redth merged commit 76c493c into main Apr 24, 2026
7 checks passed
@Redth Redth deleted the feature/maui-labs-linux-gtk4 branch April 24, 2026 22:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant