Repository navigation
Ensure the default sync root is always saved - #1134
Conversation
dragotin
left a comment
There was a problem hiding this comment.
Why do we set this mark at all? Where do we really read them?
|
|
||
| const QString dirTag() | ||
| { | ||
| return QStringLiteral("eu.opencloud.spaces.app"); |
There was a problem hiding this comment.
Nitpick: in other places we define these add const Strings. And: QStringLiterals
There was a problem hiding this comment.
I just moved the code, there is nothing new here.
There was a problem hiding this comment.
Also one should not define QStrings in global statics as they are constructed at launch time which can slow down the overall startup. That's why a function is used here.
See https://github.com/opencloud-eu/desktop/security/code-scanning/465 for an example. https://github.com/KDE/clazy/blob/master/docs/checks/README-non-pod-global-static.md
|
|
||
| const QString uuidTag() | ||
| { | ||
| return QStringLiteral("eu.opencloud.spaces.account-uuid"); |
We set the mark to prevent us and branded clients from reusing an existing sync root. With the sync root, we can't rely on the existence of a The mark prevents the spaces of account A and account B to share a sync root, this intends to prevent accidental file copies to the WRONG |
Fixes: #1116