Comment 6 for bug 1387294

Revision history for this message
Giulio Collura (gcollura) wrote : Re: [Bug 1387294] Re: Accept ~ in U1Db database path to support config folder

As I suggested on the merge request comment thread, a solution would be
allow the developer to choose in which destionation the database can be
placed. Since the places allowed by apparmor are limited (I think only
~/.config, ~/.local/share and ~/.cache are available, correct me if wrong),
we could provide an option to choose which one will be used by u1db and
translated accordingly in the correct path. This would avoid the use of ~
and other hardcoded path from the qml side. What do you think about this?

Giulio

On Thursday, October 30, 2014, Michał Karnicki <
<email address hidden>> wrote:
> Ah, I see. Thank you for the clarification :)
>
> On a related note - by setting the bug to "in progress" -- would you
> consider Giulio's MP is not good?
>
> --
> You received this bug notification because you are a bug assignee.
> https://bugs.launchpad.net/bugs/1387294
>
> Title:
> Accept ~ in U1Db database path to support config folder
>
> Status in Libqtelegram - a qt library to access telegram.:
> Confirmed
> Status in U1DB Qt/ QML:
> In Progress
>
> Bug description:
> Similar to:
> https://bugs.launchpad.net/u1db/+bug/907710
>
> but can't expand home dir from QML. So, to me, the decision to close
> the bug wasn't correct.
>
> See:
>
http://bazaar.launchpad.net/~uonedb-qt/u1db-qt/trunk/view/head:/src/database.cpp#L143
>
> In Telegram, we'd like to use ~/.config/<app package>/foo.u1db -- from
> QML.
>
> PS Please don't point me to
>
http://stackoverflow.com/questions/16408691/get-home-and-or-username-in-qml
- it's a pain.
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/libqtelegram/+bug/1387294/+subscriptions
>