diff --git a/launcher/FileSystem.cpp b/launcher/FileSystem.cpp index 3e8e10a51..e3111f4ee 100644 --- a/launcher/FileSystem.cpp +++ b/launcher/FileSystem.cpp @@ -56,6 +56,7 @@ #include #include #include +#include #include #include #include @@ -234,6 +235,10 @@ bool trash(QString path, QString *pathInTrash = nullptr) // FIXME: Figure out trash in Flatpak. Qt seemingly doesn't use the Trash portal if (DesktopServices::isFlatpak()) return false; +#if defined Q_OS_WIN32 + if (IsWindowsServer()) + return false; +#endif return QFile::moveToTrash(path, pathInTrash); #endif }