aboutsummaryrefslogtreecommitdiff
path: root/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'main.cpp')
-rw-r--r--main.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/main.cpp b/main.cpp
index 82229c23..43b1f5a6 100644
--- a/main.cpp
+++ b/main.cpp
@@ -268,6 +268,11 @@ int main(int argc, char *argv[])
engine.rootContext()->setContextProperty("scaleRatio", 1);
#endif
+#ifndef Q_OS_IOS
+ const QString desktopFolder = QStandardPaths::writableLocation(QStandardPaths::DesktopLocation);
+ if (!desktopFolder.isEmpty())
+ engine.rootContext()->setContextProperty("desktopFolder", desktopFolder);
+#endif
if (!moneroAccountsRootDir.empty())
{