Skip to content

armgit / Filee

Public Imported from GitHub
0

Free, open-source file converter. Convert 263 formats offline by drag & drop — images, PDF, Word, Excel, PowerPoint, HWP/HWPX, video, audio, e-books and archives. No upload, no Office needed.

macOS: the menu bar icon no longer crashes Filee at start; Linux keeps only the modification date

KnifeLemon031da575df3a
diff --git a/src/Filee.App/Services/TrayService.cs b/src/Filee.App/Services/TrayService.cs
index 065412c8..52ebcefc 100644
--- a/src/Filee.App/Services/TrayService.cs
+++ b/src/Filee.App/Services/TrayService.cs
@@ -33,6 +33,8 @@ public sealed class TrayService(UserDataStore store, ILocalizer loc, WindowServi
_tray = new TrayIcon
{
Icon = new WindowIcon(iconStream),
+ // Set before the icon is attached: on macOS Avalonia passes the tooltip to native code, which can't take null.
+ ToolTipText = "Filee",
Menu = new NativeMenu { Items = { _open, _pause, new NativeMenuItemSeparator(), _quit } },
IsVisible = true,
};
diff --git a/tests/Filee.Core.Tests/JobQueueTests.cs b/tests/Filee.Core.Tests/JobQueueTests.cs
index 190c2785..74a3e6f7 100644
--- a/tests/Filee.Core.Tests/JobQueueTests.cs
+++ b/tests/Filee.Core.Tests/JobQueueTests.cs
@@ -48,7 +48,9 @@ public class JobQueueTests
await Run(queue, [plain], new Preset { TargetFormat = "png" });
var output = Path.Combine(dir.Path, "taken.png");
- Assert.Equal(created, File.GetCreationTimeUtc(output));
+ // Linux file systems keep no creation time a program can set: there only the modification time is kept.
+ if (!OperatingSystem.IsLinux())
+ Assert.Equal(created, File.GetCreationTimeUtc(output));
Assert.Equal(modified, File.GetLastWriteTimeUtc(output));
// Without the option the output has the time it was made.
Assert.True(File.GetLastWriteTimeUtc(Path.Combine(dir.Path, "plain.png")) > DateTime.UtcNow.AddMinutes(-5));