Chia-Network / chia-blockchain-gui

Chia blockchain GUI in electron/react
https://chia.net
Apache License 2.0
332 stars 246 forks source link

Changed the start-up file to launch daemon process #2309

Closed ChiaMineJP closed 7 months ago

ChiaMineJP commented 7 months ago

Summary

Changed the start-up file to launch daemon process.

Previously: .../app.asar.unpacked/daemon/daemon (for source install, python .../chia/daemon/server.py) Now: .../app.asar.unpacked/daemon/chia start daemon (for source install, .../venv/bin/chia start daemon)

This PR makes use of chia start daemon command instead of daemon/server.py to launch a daemon process

Test

type OS version result Note
source m1 Mac 14.3.1 Sonoma OK
source Windows 10 OK
source Ubuntu 22.04 OK
source Fedora 39 Partially OK Need to set $PYTHONPATH env var to launch*1
package m1 Mac 14.3.1 Sonoma OK
package Windows 10 OK
package Ubuntu 22.04 OK
package Fedora 39 OK

(*1) About Fedora39 issue (source install)

This issue persistes from the previous releases so not a new issue. In order to launch daemon from the GUI, you need to set values to PYTHONPATH. The values should be source root directory where you clone chia-blockchain. For example, if you clone chia-blockchain by

cd /home/user/dev
git clone https://github.com/Chia-Network/chia-blockchain
cd /home/user/dev/chia-blockchain
./install.sh

then you need to set PYTHONPATH like PYTHONPATH=/home/user/dev/chia-blockchain:/home/user/dev/chia-blockchain/venv/lib/python-3.12/site-packages