[X2Go-Commits] [x2goclient] 01/01: create default export directory if not exists.
git-admin at x2go.org
git-admin at x2go.org
Wed Jun 1 22:23:43 CEST 2022
This is an automated email from the git hooks/post-receive script.
x2go pushed a commit to branch master
in repository x2goclient.
commit abc384dc3b6e7bbc4644bb8a777089d4326c8e49
Author: Oleksandr Shneyder <o.shneyder at phoca-gmbh.de>
Date: Wed Jun 1 15:23:26 2022 -0500
create default export directory if not exists.
---
debian/changelog | 1 +
src/onmainwindow.cpp | 9 +++++++--
2 files changed, 8 insertions(+), 2 deletions(-)
diff --git a/debian/changelog b/debian/changelog
index b7f0b86..8a01df9 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -42,6 +42,7 @@ x2goclient (4.1.2.3-0x2go1) UNRELEASED; urgency=medium
- Add splash screen option when starting in hidden mode.
- replace <HOME> with user's home dir in exports directories,
when exporting session default directories.
+ - create default export directory if not exists.
[ Ryan Schmidt ]
* New upstream version (4.1.2.3):
diff --git a/src/onmainwindow.cpp b/src/onmainwindow.cpp
index 123bb9b..329895b 100644
--- a/src/onmainwindow.cpp
+++ b/src/onmainwindow.cpp
@@ -9046,8 +9046,13 @@ void ONMainWindow::exportDefaultDirs()
tails[0].replace("<HOME>",QDir::homePath());
if(!QFile::exists(tails[0]))
{
- x2goDebug<<"Path "<<tails[0]<<" not found";
- continue;
+ x2goDebug<<"Path "<<tails[0]<<" not found, trying to create it";
+ QDir dr;
+ if(!dr.mkpath(tails[0]))
+ {
+ x2goDebug<<"Failed to create "<<tails[0];
+ continue;
+ }
}
#ifdef Q_OS_WIN
--
Alioth's /home/x2go-admin/maintenancescripts/git/hooks/post-receive-email on /srv/git/code.x2go.org/x2goclient.git
More information about the x2go-commits
mailing list