chundermike / rpi-fruitbox-v2

Retro MP3 Jukebox for Raspberry Pi
76 stars 12 forks source link

[Request] Make fruitbox runnable from `/opt` #44

Open micky2be opened 1 year ago

micky2be commented 1 year ago

Typically non-packaged library or software are install under the /opt folder. Making it usable by different users on the system.

The dedicated install script could then simply adding the execution path as such: export PATH=$PATH:/opt/fruitbox/rpi4 in /etc/profile Or even better put a script like /etc/profile.d/fruitbox.sh which will detect the pi version through /proc/cpuinfo and set the proper PATH. Or symlink the right build within /opt/fruitbox/bin and add that path to the system.

Doing so, fruitbox could be call from anywhere, like any other CLI. Only issue at the moment, the code write and read files (fruitbox.ini, fruitbox.log) based on the CWD.

Putting it here as a simple QoL improvement. I could give it a look myself, but been decades I've touch C++