Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 37 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
77 changes: 77 additions & 0 deletions docs/linux-port/release-notes/0.1.0-alpha2.md
Original file line number Diff line number Diff line change
@@ -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 <path to linux-x64>` 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).
6 changes: 6 additions & 0 deletions packaging/linux/io.github.memergamer.LinuxFiles.metainfo.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,12 @@
</supports>
<content_rating type="oars-1.1"/>
<releases>
<release version="0.1.0-alpha2" date="2026-10-08" type="development">
<url type="details">https://github.com/MemerGamer/LinuxFiles/releases/tag/linux-v0.1.0-alpha2</url>
<description>
<p>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.</p>
</description>
</release>
<release version="0.1.0-alpha1" date="2026-10-06" type="development">
<url type="details">https://github.com/MemerGamer/LinuxFiles/releases/tag/linux-v0.1.0-alpha1</url>
<description>
Expand Down
2 changes: 1 addition & 1 deletion src/Files.App/Files.App.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@

<!-- Uno Platform (Skia desktop) target -->
<PropertyGroup Condition="'$(TargetFramework)' == '$(DesktopTargetFramework)'">
<Version>0.1.0-alpha1</Version>
<Version>0.1.0-alpha2</Version>
<AssemblyVersion>0.1.0.0</AssemblyVersion>
<FileVersion>0.1.0.0</FileVersion>
<IncludeSourceRevisionInInformationalVersion>false</IncludeSourceRevisionInInformationalVersion>
Expand Down
3 changes: 1 addition & 2 deletions src/Files.App/Platforms/Desktop/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down
40 changes: 34 additions & 6 deletions src/Files.App/Services/App/AppResourcesService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ public sealed class ResourcesService : IResourcesService
private IUserSettingsService UserSettingsService { get; } = Ioc.Default.GetRequiredService<IUserSettingsService>();

private ResourceDictionary? adwaitaResources;
private ResourceDictionary? adwaitaBackgroundResources;

public ResourcesService()
{
Expand All @@ -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
Expand All @@ -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();
}
}

Expand Down
22 changes: 22 additions & 0 deletions src/Files.App/Styles/AdwaitaBackgroundResources.xaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<!-- Copyright (c) Files Community. Licensed under the MIT License. -->
<!-- Image-only surface overrides; opaque Adwaita resources remain the no-image defaults. -->
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<ResourceDictionary.ThemeDictionaries>
<ResourceDictionary x:Key="Light">
<SolidColorBrush x:Key="App.Theme.AddressBar.BackgroundBrush" Color="#D0FFFFFF" />
<SolidColorBrush x:Key="App.Theme.Toolbar.BackgroundBrush" Color="#D0FFFFFF" />
<SolidColorBrush x:Key="App.Theme.Sidebar.BackgroundBrush" Color="#D0E8E8EA" />
<SolidColorBrush x:Key="App.Theme.FileArea.BackgroundBrush" Color="#D0FFFFFF" />
<SolidColorBrush x:Key="App.Theme.FileArea.SecondaryBackgroundBrush" Color="#D0FDFDFE" />
<SolidColorBrush x:Key="App.Theme.InfoPane.BackgroundBrush" Color="#D0EBEBED" />
</ResourceDictionary>
<ResourceDictionary x:Key="Dark">
<SolidColorBrush x:Key="App.Theme.AddressBar.BackgroundBrush" Color="#D0313135" />
<SolidColorBrush x:Key="App.Theme.Toolbar.BackgroundBrush" Color="#D02E2E32" />
<SolidColorBrush x:Key="App.Theme.Sidebar.BackgroundBrush" Color="#D0313135" />
<SolidColorBrush x:Key="App.Theme.FileArea.BackgroundBrush" Color="#D019191C" />
<SolidColorBrush x:Key="App.Theme.FileArea.SecondaryBackgroundBrush" Color="#D01F1F23" />
<SolidColorBrush x:Key="App.Theme.InfoPane.BackgroundBrush" Color="#D02E2E32" />
</ResourceDictionary>
</ResourceDictionary.ThemeDictionaries>
</ResourceDictionary>
37 changes: 37 additions & 0 deletions src/Files.App/Views/Shells/ModernShellPage.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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;
Expand Down
Loading