Author Topic: Warning for those building the ui from source (data directory change)  (Read 1723 times)

0 Members and 1 Guest are viewing this topic.

Offline karnal

  • Hero Member
  • *****
  • Posts: 1068
    • View Profile
lightweight chromium, you say.....

Any chance analytics are being sent behind the users back ?

Offline maqifrnswa

  • Hero Member
  • *****
  • Posts: 661
    • View Profile
If you build the UI app from source, and you upgrade all your node modules (including electron), you may not be able to find your wallet the next time you start because the electron data directory changed

It used to be
$XDG_CONFIG_HOME/BitShares2-light
now is

$XDG_CONFIG_HOME/chromium/BitShares2-light

(on linux $XDG_CONFIG_HOME is typically  ~/.config/)

TO FIX:
import a backup
OR
just cp your original
~/.config/BitShares2-light
to the new location
~/.config/chromium/BitShares2-light

More info:
https://github.com/cryptonomex/graphene-ui/issues/508


Full Story:
The UI app is really just a lightweight chromium browser configured as a node module. The browser module is called "electron" (http://electron.atom.io/). The browser module itself changed where it saves its data:
https://github.com/atom/electron/commit/83ae9f8d71007944b9f9e5b631740ea7a416e1b9#diff-f61b360ad8984d98baba4d962bf4d259R70

which means bitshares changed where it saved it's data.
maintains an Ubuntu PPA: https://launchpad.net/~showard314/+archive/ubuntu/bitshares [15% delegate] wallet_account_set_approval maqifrnswa true [50% delegate] wallet_account_set_approval delegate1.maqifrnswa true