Skip to content

Trial: official Uno 7.2.0-dev.4 with the native Wayland host - #247

Draft
MemerGamer wants to merge 10 commits into
mainfrom
uno/official-7.2-trial
Draft

MemerGamer wants to merge 10 commits into
mainfrom
uno/official-7.2-trial

Conversation

@MemerGamer

@MemerGamer MemerGamer commented Dec 5, 2026 •

Copy link
Copy Markdown
Owner

Part of #227.

Moves LinuxFiles from the MemerGamer/uno fork packages (6.7.135-wayland.10) to the first official Uno build with the native Wayland Skia host (upstream unoplatform/uno#25503, commit 1ee31e1806): Uno.WinUI 7.2.0-dev.4 on nuget.org (nuspec commit 11b53b66f3, a descendant of 1ee31e1806). Draft trial: the point is to see what the 6.7 → 7.2 major-line jump breaks in CI, not to merge immediately.

What changed

  • global.json: Uno.Sdk 6.7.30 → 7.1.0-dev.63 — no Uno.Sdk 7.2 dev exists on nuget.org yet (Sdk dev builds are published per release branch; the 7.2/master line has not shipped one). 7.1.0-dev.63 is the closest published Sdk (built 2026-12-03, understands the renamed 7.x runtime packages and the net10.0-desktop TFM). Its UNOB0004/UNOB0005 version check expects Uno.WinUI 7.1.0-dev.701, so the existing _FilesAllowUnoWaylandPackages guard (unchanged mechanism, widened cohort condition) empties PkgUno_WinUI before the check reads it.
  • Directory.Packages.props: Uno.WinUI/Uno.WinRT → 7.2.0-dev.4; runtime packages renamed upstream: Uno.WinUI.Runtime.Skia.X11 → Uno.WinUI.Runtime.X11, Uno.WinUI.Runtime.Skia.MacOS → Uno.WinUI.Runtime.MacOS, fork package Uno.WinUI.Runtime.Skia.Wayland → official Uno.WinUI.Runtime.Wayland (Wayland stays the default Linux host via FilesUseUnoWayland; X11 remains the fallback; the macOS head moves to the same official version — no macOS CI here to verify).
  • Uno 7 split the Skia composition backend out of the runtime package: Uno.WinUI.Composition.Skia is now referenced explicitly (implicit Uno packages are disabled in this repo). HarfBuzz native assets are also no longer pulled transitively → referenced per OS for text shaping.
  • SkiaSharp 3.119.0 → 4.158.1, Svg.Skia 3.7.0 → 5.2.5 (7.2's composition package requires SkiaSharp 4.x; 5.2.5 is the Svg.Skia line built for it).
  • Program.Linux.cs: upstream removed X11RenderingBackend.Default and renamed the fork's RenderingBackend() to ForceRenderingBackend(); a backend is now forced only when FILES_RENDERER asks for one.
  • FilesUnoX11NativeDrag=false: the fork's X11 drag-out to other apps is not upstream (official X11 host hardcodes StartNativeDrag => false), so Files goes back to starting its own X11 drag source on X11; on Wayland the official host offers drags itself.
  • CI (ci-linux.yml): removed the three fork-package steps (offline downloader test, verified fetch, cache clear) — restore now comes from nuget.org.
  • VirtualizingWrapGrid probe prefix 6.7. → 7.2. (runtime fallback probe only).

Follow-up commits (what the jump broke in CI, and the fixes)

Eight CI rounds (Linux build + macOS) iterated to green; the break classes, in order of appearance:

  • GeneratedDependencyProperty attribute renamed in 7.2 (07b582b); activation enum renamed; toolkit package references; SkiaSharp 3 → 4 obsolete DrawText (9ceff0a, c8a3322).
  • The Uno-flavoured CommunityToolkit 8.x line is still compiled against the removed Uno assembly (upstream #24297): local ParseColor/ToHexString helpers replace ToColor/ToHex, StickyHeaderBehavior moves off the toolkit's BehaviorBase, and the BindableTypeProviders generation is disabled (f527f53).
  • StickyHeaderBehavior lifecycle: 7.x Behavior<T> overrides OnAttached/OnDetaching instead of Initialize/Uninitialize (3462ce1).
  • FindDescendantByName can not be an extension inside the non-static Toolbar class (CS1106); SkiaSharp 4 DrawBitmap needs the SKSamplingOptions overload, which the macOS job's warnings-as-errors turns into a build break (de8c997).
  • XamlInteractivity identity break: the pinned Uno.Microsoft.Xaml.Behaviors.Interactivity.WinUI 3.0.3 predates Uno's Behavior re-rooting — its shipped Behavior still derives System.Object (verified in the DLL metadata), so the 7.2 XAML generator's DependencyObject conversions and BehaviorCollection (: DependencyObjectCollection) reject it (CS0039/CS1503). Fixed by moving to 4.0.1 (built from the reworked branch: Behavior : DependencyObject, Uno.WinUI >= 7.0.32, net10.0 TFMs, Interactions types merged in) and dropping the unused CommunityToolkit.WinUI.Behaviors package together with its stale transitive Uno.Microsoft.Xaml.Behaviors.WinUI.Managed 2.4.2 (359a9b1).
  • Remaining CommunityToolkit string.ToColor() sites replaced with the local ParseColor (CS0012 on Color); the local Debounce duplicate removed (CS0121, the toolkit method's signature binds fine on 7.2); Toolbar/NavigationToolbar given the CommunityToolkit.WinUI using their extension calls need (359a9b1, 7ab0193).

Fork plumbing kept for an easy revert (inert)

nuget.wayland.config, build/fetch-uno-wayland.sh, build/uno-wayland-pins.py, build/uno-wayland-packages.sha256, build/clear-uno-wayland-cache.sh, build/tests/test-fetch-uno-wayland.py and docs/linux-port/wayland-packages.md are untouched and no longer wired into the build. A later, separate change would remove them plus the AUR/Nix references to the fork (packaging/linux/aur/linuxfiles/PKGBUILD, scripts/linux/gen-aur.sh, metainfo) — deliberately not touched here, per the issue's scope.

CI state

Green as of head 7ab019356 (2026-12-06): build-linux-x64 (Nightly — full publish.sh --rid linux-x64 --tarball of the Wayland-default desktop chain) and build-macos (Platform.MacOS build with warnings-as-errors, then the unsigned .app publish) both pass. publish-nightly stays skipped while the PR is a draft. Only the build is verified; nothing has run on real hardware yet.

Fork-only features lost by moving to official Uno

Compared the fork branch wayland/host (and its merged PRs #1–#3, open drafts #4 #5 #7 #8) against upstream unoplatform/uno at 11b53b66f3 (the 7.2.0-dev.4 commit), read-only. The native Wayland host itself is upstream since #25503; the table covers what is not.

Fork change What it does Upstream in 7.2.0-dev.4? Impact on LinuxFiles
#1 (merged): expose the XDND requested action DataView.RequestedOperation reflects the X11 drag source's request, refreshed as modifiers change No — upstream X11DragDropExtension hardcodes Copy with a TODO: support other actions X11 drop handlers can't tell Move from Copy; Files degrades external drags to copy semantics
#2 (merged): reduce resize work X11 paces geometry callbacks from the last UI update; Wayland keeps the configure coalescing/matching-layout gate and rechecks the generation after buffer preparation Wayland: yes (shipped inside #25503 — WaylandConfigureScheduler with generations and presentation holds). X11: no — upstream still has the "ticks as milliseconds" timer bug Wayland resize parity with the fork. X11 pacing loss is minor: the fork's own measurements showed no clear gain on the final package head (7.3 ms vs 6.6–7.2 ms baseline)
#3 (merged): ListViewBase select-all + ContainerFromItem perf Old selection captured only on Clear; container index checked before fetching the backing item No — upstream ListViewBase is unchanged Select-all in very large folders roughly 2x slower (fork measured 10,003 items: 872 ms → 283 ms warm); accepted as a known perf regression for the trial
#4 (draft): X11 drag out to other apps (XDND v5 source) XDND source with icon, grabs, uri-list/HTML/PNG offers, INCR, strict action negotiation No — upstream X11DragDropExtension.StartNativeDrag returns false On X11, Files goes back to starting its own drag source (FilesUnoX11NativeDrag=false), which follows the pointer outside the window; drag-out still works but is the pre-fork mechanism
#5 (draft): follow desktop font settings, LCD text on verified outputs fontconfig antialias/hinting/rgba, LCD (subpixel) AA only where the display server reports the panel order No — no fontconfig/subpixel/LCD code anywhere in the Linux runtimes Text uses Uno defaults (grayscale AA, Skia's own hinting); at 1x it looks softer than GTK/Qt text beside it
#7 (draft): hardened X11 selection reader + accept drops (XDND target) Dedicated-connection selection reads with owner binding, INCR deadlines and a 64 MiB cap; Copy/Move drop negotiation Partially — upstream has an XDND target and clipboard reads with a 2 s deadline and partial INCR, but Copy-only drops and shared-connection reads Incoming file drags work, but only as Copy (a Move from another file manager completes as copy); rarer lost or mismatched selection reads under load remain possible
#8 (draft): LCD text refinement + optional uniform text gamma KDE/GNOME subpixel preference merge; UNO_SKIA_TEXT_GAMMA=uniform No Moot while #5 is not upstream

Net: the trial loses X11 drop Move semantics, the X11 resize-pacing fix, the select-all performance work and desktop font/LCD text control. Everything else the fork carried — the Wayland host, its drag-out, clipboard file lists (Files-side), client decorations — is upstream now or lives in Files, not Uno.

Recommendation

Move now, in two steps.

  1. Adopt official Uno as the build base now — this PR, merged as a trial, is the cheapest point to switch: CI builds both desktop heads on 7.2.0-dev.4, Wayland stays the default Linux host, and every fork-only build hook this PR removed was inert plumbing kept for an easy revert. The 6.7 fork line (6.7.135-wayland.10) should stay published until the first real 7.2-based build has run on Hunor's machine, then be retired.
  2. Before removing the fork packages for good, run the 7.2 app once on real hardware (Wayland and X11): CI proves the compile, not the runtime — the stale CommunityToolkit assemblies still in the graph (upstream #24297, compile-clean here because none of their Uno-assembly-typed signatures are called) and the new Wayland host's drag/clipboard paths are the two things a smoke run must confirm.

What is lost (table above) argues for upstreaming, not for staying on the fork: X11 drop Move semantics and the desktop font/LCD work are self-contained upstream PRs; the select-all and resize-pacing items are small, already-measured regressions. Staying on 6.7.135-wayland.10 means carrying a private Uno fork forever with no upstream path.

Testing

GitHub CI only (no local builds, per the night-job rules): the build-linux-x64 job builds the full desktop chain on Ubuntu 24.04 with Wayland as the default host, and build-macos builds Platform.MacOS with warnings-as-errors plus the unsigned .app publish. API-break fixes landed as follow-up commits on this branch until both went green. Runtime behaviour on real hardware is still untested.

🤖 Generated with GLM via pi

First official Uno build that contains the native Wayland Skia host
(upstream unoplatform/uno#25503, commit 1ee31e1806): Uno.WinUI
7.2.0-dev.4 on nuget.org. Switches LinuxFiles from the MemerGamer/uno
fork packages (6.7.135-wayland.10) to the official 7.2.0-dev.4 cohort
as a CI trial for #227.

- global.json: Uno.Sdk 6.7.30 -> 7.1.0-dev.63 (no Uno.Sdk 7.2 dev is
  published on nuget.org yet; 7.1.0-dev.63 is the closest build). Its
  UNOB0004/UNOB0005 version check rejects the 7.2 cohort, so the
  existing guard empties PkgUno_WinUI before the check reads it.
- Directory.Packages.props: Uno.WinUI/Uno.WinRT 7.2.0-dev.4; runtime
  packages renamed upstream (Uno.WinUI.Runtime.Skia.X11/MacOS ->
  Uno.WinUI.Runtime.X11/MacOS) plus the new Uno.WinUI.Runtime.Wayland.
- The Skia composition backend moved to Uno.WinUI.Composition.Skia in
  Uno 7; referenced explicitly because implicit Uno packages are
  disabled in this repo. HarfBuzz native assets are no longer pulled by
  the runtime packages; referenced per OS for text shaping.
- SkiaSharp 3.119.0 -> 4.158.1, Svg.Skia 3.7.0 -> 5.2.5 (Uno 7.2 needs
  SkiaSharp 4.x).
- Program.Linux.cs: X11RenderingBackend.Default was removed upstream
  and the fork's RenderingBackend() is ForceRenderingBackend(); only
  force a backend when the selector did not pick Default.
- FilesUnoX11NativeDrag=false: the fork's X11 drag-out to other apps
  (start of drafts #4/#5) is not upstream; official X11 host returns
  false from StartNativeDrag. Files keeps its own X11 drag source.
- CI: removed the three fork-package steps (offline downloader test,
  fetch, cache clear); restore now comes from nuget.org.
- VirtualizingWrapGrid probe prefix 6.7. -> 7.2.

Kept for an easy revert: nuget.wayland.config, build/fetch-uno-wayland.sh,
build/uno-wayland-packages.sha256 and the pin docs are untouched and
inert. AUR/Nix are not touched. macOS head switched to the same
official versions but has no macOS CI here.
…ohort-aware

The build-linux-x64 check runs in the Nightly Linux workflow, which still
called the fork's fetch script and failed in seconds because 7.2.0-dev.4
has no committed pin set. The nightly job now restores from nuget.org.
publish.sh only runs the fork fetch/clear when Directory.Packages.props
still pins a fork cohort (X.Y.Z-wayland.N), so both modes keep working.
SKCanvas.DrawText(text, x, y, font, paint) is obsolete in SkiaSharp 4.x
and the repo treats warnings as errors. The SKTextAlign.Left overload
keeps the previous alignment.
Uno 7.2's XAML generator validates that a Setter target is a real
DependencyProperty; source-declared [GeneratedDependencyProperty]
properties are accepted only when the attribute's full metadata name is
Uno.UI.Xaml.GeneratedDependencyPropertyAttribute (the output of other
generators is invisible to it). The repo's shim declared the attribute
in CommunityToolkit.WinUI, so every style Setter on a generated DP
failed with UXAML0001 (e.g. ThemedIcon.OutlineIconData).

Move the shim attribute (both copies: Files.App.Controls/Uno and the
Files.App desktop shim) into the Uno.UI.Xaml namespace and switch the
usings. Files.Core.SourceGenerator matches the attribute by short name,
so its output is unchanged.
…ation enum

- CommunityToolkit.WinUI.* 8.2.251219 -> 8.3.261203: the 8.2 line was
  built against the 6.x Uno assemblies and its member signatures still
  name the old 'Uno' assembly, which 7.x no longer ships (CS0012 on
  Colors/ToColor/CoreDispatcher in app code and in the generated
  BindableMetadata; missing FindDescendant/Debounce extensions).
- Uno.Microsoft.Xaml.Behaviors.WinUI.Managed 2.4.2 ->
  Uno.Microsoft.Xaml.Behaviors.Interactivity.WinUI 3.0.3: the 2.4.2
  package is built for 6.x type identities, so BehaviorBase no longer
  converts to DependencyObject (CS0039/CS1503).
- GridLayoutPage: the ItemsPanelTemplate(Func<Panel>) factory
  constructors are removed in Uno 7. Panels are now declared through
  XamlReader.Load markup with the orientation and cell size baked in;
  the grouped header predicate travels through an attached property on
  the owning ItemsControl and the panel resolves it from its parent
  chain at first measure.
- Window_Activated: compare with WindowActivationState; the
  CoreWindowActivationState cross-enum comparison no longer compiles.
The Uno-flavored CommunityToolkit 8.x line is still compiled against the
pre-7.0 Uno assemblies: member signatures still name the removed 'Uno'
assembly (upstream unoplatform/uno#24297, open). This removes the last
uses of the affected APIs from Files.App:

- StickyHeaderBehavior now derives from Microsoft.Xaml.Interactivity's
  7.x-native Behavior<FrameworkElement> instead of the toolkit's
  BehaviorBase, restoring the DependencyObject identity that the XAML
  generator's Interaction.Behaviors codegen expects (CS1503/CS0039).
- String.ToColor and ColorHelper.ToHex are replaced by local
  ParseColor/ToHexString helpers (CS0012 on 'Color').
- DispatcherQueueTimer.Debounce and FindDescendant(name) move to local
  extensions (CS1061).
- The BindableTypeProviders generation is disabled for the desktop head
  (the generator still emits 'Uno' assembly references when stale
  toolkit packages are in the graph, per #24297). Files uses compiled
  x:Bind, so the reflection providers are not needed.
Microsoft.Xaml.Behaviors.Interactivity 3.0.3's Behavior<T> no longer has
the toolkit's bool Initialize()/Uninitialize() overrides (CS0115 on Uno
7.2); override OnAttached()/OnDetaching() instead. AssignAnimation keeps
its own success signal and the property-change paths retry it when the
header is not realized yet, so attaching can always succeed.
- Toolbar.xaml.cs: FindDescendantByName was declared as an extension
  method inside the non-static Toolbar class (CS1106); make it a plain
  static method and call it with the element argument.
- MacOSSidebarIcons.cs and PreviewImageDecoder.cs: SkiaSharp 4 obsoleted
  the paint-based DrawBitmap overloads (CS0618; the macOS job builds
  Files.Platform.MacOS with warnings as errors). Use the
  SKSamplingOptions overload with nearest-neighbour sampling, which is
  exact for these 1:1 blits.
…unce

CI round at f527f53+ showed the remaining break classes (both heads
agree on the same set):

- XamlInteractivity: the pinned Uno.Microsoft.Xaml.Behaviors.Interactivity
  3.0.3 predates Uno's Behavior re-rooting: its shipped Behavior derives
  System.Object (verified in the DLL metadata), while Uno 7.2's XAML
  generator and BehaviorCollection : DependencyObjectCollection require
  behaviors to be DependencyObjects (CS0039 on the DependencyProperty
  callback cast, CS1503 from the generator and from
  IBehaviorCollection.Remove). Move to 4.0.1, which is built against the
  reworked branch (Behavior : DependencyObject, Uno.WinUI >= 7.0.32,
  net10.0 TFMs, Interactions types merged in). The unused
  CommunityToolkit.WinUI.Behaviors package (no code or XAML references
  it) is dropped together with its stale transitive
  Uno.Microsoft.Xaml.Behaviors.WinUI.Managed 2.4.2.
- Color parsing: the remaining CommunityToolkit string.ToColor() call
  sites (StringToBrushConverter, FileTagItem, AppThemeResourcesHelper)
  fail with CS0012 because the toolkit's 8.x line still types Color in
  the removed 'Uno' assembly (unoplatform/uno#24297). Use the local
  ParseColor helper from f527f53, which returns Windows.UI.Color.
- Debounce: the local DispatcherQueueTimer extension added in f527f53
  made every call ambiguous with CommunityToolkit.WinUI's Debounce
  (CS0121 in 7 files), whose parameter types do bind on 7.2. Remove the
  local copy and use the toolkit method again.
- FindDescendant: NavigationToolbar.xaml.cs lost the CommunityToolkit
  using that every other FindDescendant caller still has (CS1061); add
  it back.
Toolbar.xaml.cs called DispatcherQueueTimer.Debounce through the local
Files.App.Extensions copy; with that removed in the previous commit the
call sites need the CommunityToolkit.WinUI using that every other
Debounce caller already has.
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