diff --git a/CHANGELOG.md b/CHANGELOG.md index c10e16acf0f6..392516169e61 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,43 @@ LinuxFiles is an unofficial native Linux port of [Files](https://github.com/files-community/Files) by the Files Community. This changelog covers the fork only. +## 0.1.0-alpha2 - 2026-10-08 + +Second alpha, driven by feedback on the first. Expect rough edges and keep backups. Report issues at +https://github.com/MemerGamer/LinuxFiles/issues. + +### Features + +- Optional Adwaita-style appearance (Settings > Appearance): libadwaita light and dark palettes, rounded controls + and more spacing, applied by overriding existing resources. Off by default. +- Window opacity setting (Linux, needs a compositing window manager). The Backdrop material card is hidden on + Linux because it did nothing. +- Nix flake (`nix run github:MemerGamer/LinuxFiles`) wrapping the release tarball. Root actions are off in the + Nix package. +- `FILES_RENDERER=software|opengl|gles|vulkan` to override the rendering backend. + +### Fixes + +- The app background image setting now shows the image (the path was never decoded and the light file area + covered it). Images are loaded with size and pixel limits, special files are rejected and animations use their + first frame. Adwaita surfaces become translucent only while a background image is configured with nonzero opacity, + preserving the original opaque colours when no image is set. +- The glitching icon at the top left of the tab bar: two buttons were drawn on top of each other, and the hidden + one swallowed the clicks meant for the tab actions menu. +- Systems without GPU acceleration use the software renderer, which roughly halves startup CPU use and + navigation cost. +- Fractional `Xft.dpi` values such as `144.0` are honoured instead of falling back to 100 percent scale. +- Holding Page Down in a large folder no longer freezes repainting (repeats are coalesced), and the Details column + header stays visible when the list is scrolled. +- The root helper installer refuses to overwrite files owned by a distro package, and the AppImage and Flatpak + builds only strip the root-mode desktop action instead of everything after it. + +### Known limitations + +- Text can look soft at 100 percent scale: Uno's font hinting settings are not configurable. With fractional + scaling under XWayland, set `Xft.dpi` (KDE: apply scaling themselves) to avoid compositor upscaling. +- Window opacity fades the whole window, and compositors that ignore the property show no change. + ## 0.1.0-alpha1 - 2026-10-06 First public alpha. Expect rough edges and do not rely on it for data you cannot afford to lose. Please report diff --git a/docs/linux-port/release-notes/0.1.0-alpha2.md b/docs/linux-port/release-notes/0.1.0-alpha2.md new file mode 100644 index 000000000000..0991d90676b9 --- /dev/null +++ b/docs/linux-port/release-notes/0.1.0-alpha2.md @@ -0,0 +1,77 @@ +# LinuxFiles 0.1.0-alpha2 + +Second public alpha of LinuxFiles, an unofficial native Linux port of [Files](https://github.com/files-community/Files) by the Files Community. Expect rough edges and keep backups of anything you care about. + +## Highlights + +- Optional Adwaita-style appearance, background images that also show through Adwaita surfaces, and a window opacity setting. +- The glitching tab bar icon is fixed, and systems without GPU acceleration render with about half the CPU. +- A Nix flake for NixOS (`nix run github:MemerGamer/LinuxFiles`). +- Holding Page Down in big folders no longer freezes the window, and the Details header stays visible. +- Safer root helper installation and packaging filters. +- Everything from alpha1: native Linux (X11 / XWayland), fast grouped views, KDE service menus, optional polkit root actions, native file pickers, archives, tabs in a client-side title bar. + +Full notes: [CHANGELOG.md](https://github.com/MemerGamer/LinuxFiles/blob/main/CHANGELOG.md). + +## Install + +Requires x86_64 Linux with X11 or XWayland. Packages are self-contained. + +**Arch (AUR)**, which also installs the optional polkit root helper: + +```sh +yay -S linuxfiles-bin # or paru -S linuxfiles-bin +``` + +**AppImage**: + +```sh +chmod +x Files-x86_64.AppImage && ./Files-x86_64.AppImage +``` + +**Flatpak bundle** (root actions are off in the sandbox): + +```sh +flatpak install --user Files-x86_64.flatpak +flatpak run io.github.memergamer.LinuxFiles +``` + +**Nix** (flake, no root actions): + +```sh +nix run github:MemerGamer/LinuxFiles +``` + +**Tarball**: + +```sh +tar xzf files-linux-x64.tar.gz && ./linux-x64/Files +``` + +To install the tarball for your user, run `scripts/linux/install-local.sh --from ` from a clone of the repository. `files-packaging.tar.gz` is for packagers. + +## Checksums + +Download `SHA256SUMS` into the same folder as your download and run: + +```sh +sha256sum -c --ignore-missing SHA256SUMS +``` + +## Known issues + +- Text can look soft at 100 percent scale (Uno font hinting); with fractional scaling under XWayland set `Xft.dpi`. +- Window opacity needs a compositing window manager and fades the whole window. +- Light-theme toolbar buttons can fade when focused. +- The Grid context-menu acrylic can show an olive smear. +- The Properties dialog has no backdrop. +- Long file names wrap in Details. +- Wayland runs through XWayland. +- The Nix package has no root actions, and was built but not run on a real NixOS machine. +- The Windows build is not restored yet (phase 8). + +Report problems at https://github.com/MemerGamer/LinuxFiles/issues. + +## Credits + +LinuxFiles is built on [Files](https://github.com/files-community/Files) by the [Files Community](https://github.com/files-community) and its contributors, used under the MIT licence. This port is not affiliated with or endorsed by the Files Community; the supported Files for Windows is at [files.community](https://files.community/). Thanks also to the Uno Platform and SkiaSharp projects that make the Linux port possible. See [NOTICE.md](https://github.com/MemerGamer/LinuxFiles/blob/main/NOTICE.md). diff --git a/packaging/linux/io.github.memergamer.LinuxFiles.metainfo.xml b/packaging/linux/io.github.memergamer.LinuxFiles.metainfo.xml index 237717174258..8bb3dc03fdf2 100644 --- a/packaging/linux/io.github.memergamer.LinuxFiles.metainfo.xml +++ b/packaging/linux/io.github.memergamer.LinuxFiles.metainfo.xml @@ -28,6 +28,12 @@ + + https://github.com/MemerGamer/LinuxFiles/releases/tag/linux-v0.1.0-alpha2 + +

Optional Adwaita-style appearance, a working app background image and window opacity, a fix for the glitching tab bar icon, faster rendering on systems without GPU acceleration, a Nix flake and safer root helper installation.

+
+
https://github.com/MemerGamer/LinuxFiles/releases/tag/linux-v0.1.0-alpha1 diff --git a/src/Files.App/Files.App.csproj b/src/Files.App/Files.App.csproj index 67675b73ba27..ae3f180c0962 100644 --- a/src/Files.App/Files.App.csproj +++ b/src/Files.App/Files.App.csproj @@ -54,7 +54,7 @@ - 0.1.0-alpha1 + 0.1.0-alpha2 0.1.0.0 0.1.0.0 false diff --git a/src/Files.App/Platforms/Desktop/Program.cs b/src/Files.App/Platforms/Desktop/Program.cs index 9dda90c11063..782c513c7a98 100644 --- a/src/Files.App/Platforms/Desktop/Program.cs +++ b/src/Files.App/Platforms/Desktop/Program.cs @@ -95,8 +95,7 @@ public static int Main(string[] args) // Software GL (llvmpipe) is slower than Uno's software renderer; FILES_RENDERER=software|opengl|gles|vulkan overrides var (renderingBackend, reason) = RenderingBackendSelector.Resolve(Environment.GetEnvironmentVariable, RenderingBackendSelector.HasGpuDevice); - if (reason is not null) - Console.Error.WriteLine($"[Files] Rendering backend: {renderingBackend} ({reason})"); + Console.Error.WriteLine($"[Files] Rendering backend: {renderingBackend} ({reason ?? "default"})"); var host = UnoPlatformHostBuilder.Create() .App(() => new App()) diff --git a/src/Files.App/Services/App/AppResourcesService.cs b/src/Files.App/Services/App/AppResourcesService.cs index 9b5c2e106a76..2f8658f01a88 100644 --- a/src/Files.App/Services/App/AppResourcesService.cs +++ b/src/Files.App/Services/App/AppResourcesService.cs @@ -13,6 +13,7 @@ public sealed class ResourcesService : IResourcesService private IUserSettingsService UserSettingsService { get; } = Ioc.Default.GetRequiredService(); private ResourceDictionary? adwaitaResources; + private ResourceDictionary? adwaitaBackgroundResources; public ResourcesService() { @@ -24,12 +25,13 @@ public ResourcesService() UserSettingsService.GeneralSettingsService.PropertyChanged += GeneralSettingsService_PropertyChanged; } - private void UpdateAppearanceResources() + private bool UpdateAppearanceResources() { if (!OperatingSystem.IsLinux()) - return; + return false; var dictionaries = Application.Current.Resources.MergedDictionaries; + var changed = false; if (UserSettingsService.AppearanceSettingsService.UseAdwaitaTheme) { adwaitaResources ??= new ResourceDictionary @@ -38,20 +40,46 @@ private void UpdateAppearanceResources() }; if (!dictionaries.Contains(adwaitaResources)) + { dictionaries.Add(adwaitaResources); + changed = true; + } } else if (adwaitaResources is not null) { - dictionaries.Remove(adwaitaResources); + changed |= dictionaries.Remove(adwaitaResources); + } + + var appearance = UserSettingsService.AppearanceSettingsService; + if (appearance.UseAdwaitaTheme && !string.IsNullOrWhiteSpace(appearance.AppThemeBackgroundImageSource) && appearance.AppThemeBackgroundImageOpacity > 0) + { + adwaitaBackgroundResources ??= new ResourceDictionary + { + Source = new Uri("ms-appx:///Styles/AdwaitaBackgroundResources.xaml"), + }; + + if (!dictionaries.Contains(adwaitaBackgroundResources)) + { + dictionaries.Add(adwaitaBackgroundResources); + changed = true; + } + } + else if (adwaitaBackgroundResources is not null) + { + changed |= dictionaries.Remove(adwaitaBackgroundResources); } + + return changed; } private void AppearanceSettingsService_PropertyChanged(object? sender, PropertyChangedEventArgs e) { - if (e.PropertyName == nameof(IAppearanceSettingsService.UseAdwaitaTheme)) + if (e.PropertyName is nameof(IAppearanceSettingsService.UseAdwaitaTheme) or + nameof(IAppearanceSettingsService.AppThemeBackgroundImageSource) or + nameof(IAppearanceSettingsService.AppThemeBackgroundImageOpacity)) { - UpdateAppearanceResources(); - ApplyResources(); + if (UpdateAppearanceResources()) + ApplyResources(); } } diff --git a/src/Files.App/Styles/AdwaitaBackgroundResources.xaml b/src/Files.App/Styles/AdwaitaBackgroundResources.xaml new file mode 100644 index 000000000000..9ab4b0046e76 --- /dev/null +++ b/src/Files.App/Styles/AdwaitaBackgroundResources.xaml @@ -0,0 +1,22 @@ + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/Files.App/Views/Shells/ModernShellPage.xaml.cs b/src/Files.App/Views/Shells/ModernShellPage.xaml.cs index 5f6ef4ea45cc..721d26683dcd 100644 --- a/src/Files.App/Views/Shells/ModernShellPage.xaml.cs +++ b/src/Files.App/Views/Shells/ModernShellPage.xaml.cs @@ -60,10 +60,42 @@ public ModernShellPage() : base(new CurrentInstanceViewModel()) ItemDisplayFrame.NavigationFailed += (s, e) => Microsoft.Extensions.Logging.LoggerExtensions.LogWarning(App.Logger, e.Exception, "Navigation to {T} failed", e.SourcePageType?.Name); BackIcon.Visibility = Visibility.Collapsed; ForwardIcon.Visibility = Visibility.Collapsed; + + Loaded += ModernShellPage_Loaded; + Unloaded += ModernShellPage_Unloaded; #endif // LINUX-TODO(overscroll): touchpad overscroll navigation needs InteractionTracker, which Uno does not implement } +#if !WINDOWS + private void ModernShellPage_Loaded(object sender, RoutedEventArgs e) + { + UpdateShellShadow(); + userSettingsService.AppearanceSettingsService.PropertyChanged -= AppearanceSettingsService_PropertyChanged; + userSettingsService.AppearanceSettingsService.PropertyChanged += AppearanceSettingsService_PropertyChanged; + } + + private void ModernShellPage_Unloaded(object sender, RoutedEventArgs e) + { + userSettingsService.AppearanceSettingsService.PropertyChanged -= AppearanceSettingsService_PropertyChanged; + } + + private void AppearanceSettingsService_PropertyChanged(object? sender, System.ComponentModel.PropertyChangedEventArgs e) + { + if (e.PropertyName is nameof(IAppearanceSettingsService.UseAdwaitaTheme) or + nameof(IAppearanceSettingsService.AppThemeBackgroundImageSource) or + nameof(IAppearanceSettingsService.AppThemeBackgroundImageOpacity)) + UpdateShellShadow(); + } + + private void UpdateShellShadow() + { + var appearance = userSettingsService.AppearanceSettingsService; + var hasBackground = !string.IsNullOrWhiteSpace(appearance.AppThemeBackgroundImageSource) && appearance.AppThemeBackgroundImageOpacity > 0; + RootGrid.Shadow = appearance.UseAdwaitaTheme && hasBackground ? null : ShellContentThemeShadow; + } +#endif + private async void ShellViewModel_FocusFilterHeader(object? sender, EventArgs e) { // Delay to ensure the UI is ready for focus @@ -277,6 +309,11 @@ public override void Up_Click() public override void Dispose() { +#if !WINDOWS + Loaded -= ModernShellPage_Loaded; + Unloaded -= ModernShellPage_Unloaded; + userSettingsService.AppearanceSettingsService.PropertyChanged -= AppearanceSettingsService_PropertyChanged; +#endif Bindings.StopTracking(); ContentChanged -= ModernShellPage_ContentChanged; ToolbarViewModel.RefreshWidgetsRequested -= ModernShellPage_RefreshWidgetsRequested;