mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-07-30 01:08:02 +00:00
Fix directory opening with portal and use them by default with KDE
This commit is contained in:
@@ -266,7 +266,7 @@ bool UseXDGDesktopPortal() {
|
||||
const auto envVar = qEnvironmentVariableIsSet("TDESKTOP_USE_PORTAL");
|
||||
const auto portalPresent = IsXDGDesktopPortalPresent();
|
||||
|
||||
return envVar && portalPresent;
|
||||
return (DesktopEnvironment::IsKDE() || envVar) && portalPresent;
|
||||
}();
|
||||
|
||||
return UsePortal;
|
||||
|
||||
Reference in New Issue
Block a user