Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
"--portable": more consistent behaviour
The old and new behaviour is as follows: 1. "pyinstaller" case: portable `.exe`, other `.exe`s with `--portable`, and `.dmg` with `--portable` - uses `$PWD` - note that when you double-click the portable `.exe` on Windows, `$PWD` is set to the parent folder, i.e. the datadir gets put next to the `.exe` 2. appimage `--portable` - was broken (see #5551) - (CHANGED NOW to) uses `$PWD` 3. git clone - next to `run_electrum` 4. unpacking `tar.gz` and running locally from it - next to `run_electrum` 5. `pip install *.tar.gz`, and calling "electrum --portable" from terminal - used python's user script directory - `~/.local/bin/electrum_data` - `$VIRTUAL_ENV/bin/electrum_data` - (CHANGED NOW to) uses `$PWD` That is, we now almost always put the datadir in `$PWD`, except for the local source case, where we put it next to `run_electrum`. The "appimage" case (2) is now fixed. The only breaking change is re case 5 which previously behaved completely unintuitively and most likely not in a useful way. closes #7732 fixes #5551
- Loading branch information