markjfine / nrsc5-dui

An enhanced, user-friendly version of nrsc5-gui that is not heavily dependent upon Python processing for audio generation.
GNU General Public License v3.0
139 stars 9 forks source link

Add `NRSC5DUI_DATA` environment variable #38

Closed bleonard252 closed 7 months ago

bleonard252 commented 7 months ago

This PR adds an environment variable intended for use when nrsc5-dui is installed somewhere immutable. A few fixes for assumptions about the runtime environment were applied. I also had it print the actual error when it failed to write the config file (as this was an issue I was having).

When NRSC5DUI_DATA is set to a writeable, empty directory:

When NRSC5DUI_DATA is not set:

It may be beneficial to apply this as a "squash" merge.

markjfine commented 7 months ago

Good idea. One minor nit to fix and I'll accept/merge.

markjfine commented 7 months ago

Awesome. Thank you!

markjfine commented 7 months ago

As simple and elegant as this is, it's given me some ideas on how to finally solve the issue of being able to easily swap configurations (mostly the bookmarks and associated station logos) when using the app in more than one radio market (e.g, DC and/or NYC).