Get rid of sandboxed paths workaround

This is fixed in xdg-desktop-portal 1.17.

There's no way to check xdg-desktop-portal version so it's either not having support for passing last used path at all in sandbox or encountering the bug on old systems.
This commit is contained in:
Ilya Fedin 2023-08-23 03:10:06 +04:00 committed by John Preston
parent 0f86968afd
commit 082b5ba782
1 changed files with 0 additions and 5 deletions

View File

@ -93,11 +93,6 @@ bool Get(
if (parent) {
parent = parent->window();
}
// Workaround for sandboxed paths
static const auto docRegExp = QRegularExpression("^/run/user/\\d+/doc");
if (cDialogLastPath().contains(docRegExp)) {
InitLastPath();
}
return ::FileDialog::internal::GetDefault(
parent,
files,