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.

Merge main into g-waylnd

KnifeLemon1651ddb1706e
diff --cc src/Filee.Platform.Linux/LinuxPlatformServices.cs
index 4c2dc179,af92645b..b45dbc94
--- a/src/Filee.Platform.Linux/LinuxPlatformServices.cs
+++ b/src/Filee.Platform.Linux/LinuxPlatformServices.cs
@@@ -68,11 -56,11 +68,13 @@@ public sealed class LinuxPlatformServic
// Wayland can't say which window is under the cursor, so any Ctrl+drag may open the (invisible) donut window;
// it only shows when files are dragged in, and excluded apps can't be told apart there either.
+ public TrashRefusal? MoveToTrash(string path) => FreedesktopTrash.Move(path, Path.Combine(XdgDirectory("XDG_DATA_HOME", ".local/share"), "Trash"));
+
public bool IsFileManagerAt(int x, int y) =>
- WaylandGestures || ProcessNameAt(x, y) is { } name && FileManagers.Contains(name);
- public string? ProcessNameAt(int x, int y) => X11WindowSystem.ProcessNameAt(x, y);
+ UsesGnomePointerBridge && GnomePointerIsDesktop
+ || WaylandGestures || ProcessNameAt(x, y) is { } name && FileManagers.Contains(name);
+ public string? ProcessNameAt(int x, int y) => UsesGnomePointerBridge
+ ? GnomePointerProcess : X11WindowSystem.ProcessNameAt(x, y);
public IReadOnlyList<string> RunningAppNames() => IPlatformServices.AppNames(X11WindowSystem.ClientProcessNames());
public IReadOnlyList<string> GetFileManagerSelection() => throw new NotSupportedException(SelectionShortcutUnavailableReason);