mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 14:45:14 +00:00
Use custom workdir even if it doesn't exist
This commit is contained in:
@@ -51,6 +51,7 @@ DeclareSetting(QString, WorkingDir);
|
||||
inline void cForceWorkingDir(const QString &newDir) {
|
||||
cSetWorkingDir(newDir);
|
||||
if (!gWorkingDir.isEmpty()) {
|
||||
cSetWorkingDir(QDir(gWorkingDir).absolutePath() + '/');
|
||||
QDir().mkpath(gWorkingDir);
|
||||
QFile::setPermissions(gWorkingDir,
|
||||
QFileDevice::ReadUser | QFileDevice::WriteUser | QFileDevice::ExeUser);
|
||||
|
Reference in New Issue
Block a user