-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Configured to use wrong location for contacts in SailFish 4.5.0.21 #52
Comments
Seems to be hardcoded in
|
https://stackoverflow.com/a/26696759 gives an idea of how set a string to be the logged-in user's $HOME. I don't speak C++, but if we were in Puppet, I'd use string interpolation or concatenation to accommodate the new multiple-user Sailfish. // Magic to get a string called homedir
// I'm not sure that the `const char` in the Stack Overflow will concatenate with a string
// so I'm disinclined to paste that example code here.
static QString QTCONTACTS_SQLITE_STORE = QStringLiteral(
homedir + "/.local/share/system/Contacts/qtcontacts-sqlite/contacts.db");
// https://cplusplus.com/reference/string/string/operator+/ says that + is the correct operator |
IIRC there are some standard paths provided by Qt already, |
The contacts database is no longer used by Sailfish OS: https://forum.sailfishos.org/t/4-0-1-45-non-jailed-contacts-sqlite-database-no-longer-updated/4724 |
The contact database is at
/home/defaultuser/.local/share/system/Contacts/qtcontacts-sqlite
but SailfishConnect expects it at/home/nemo/.local/share/system/Contacts/qtcontacts-sqlite/contacts.db
.The text was updated successfully, but these errors were encountered: