johnste / finicky

A macOS app for customizing which browser to start
MIT License
3.74k stars 137 forks source link

Using Env Variables in Config for Multi-Machine Sync of Profile Names #337

Open chessbyte opened 1 month ago

chessbyte commented 1 month ago

Is your feature request related to a problem? Please describe. I open different URLs in different Google Chrome profiles. Even though Google synchronizes the profiles, it does not maintain the same directory names across machines. I have created scripts that set environment variables specifying the directory per matching email in each profile. But I cannot use these in finicky.js config file - therefore I need to keep different versions of finicky.js on each machine and it is challenging to keep in sync.

Describe the solution you'd like A way to read environment variables in finicky.js and use them to set up configuration settings.

Describe alternatives you've considered I have tried reading the Google Chrome profiles in finicky.js, but it does not have access to the file system.