haimgel / display-switch

Turn a $30 USB switch into a full-featured multi-monitor KVM switch
https://haim.dev/posts/2020-07-28-dual-monitor-kvm/
MIT License
2.85k stars 112 forks source link

Support multiple configuration file locations #28

Open haimgel opened 3 years ago

haimgel commented 3 years ago

The app should support multiple configuration file locations:

Linux

MacOS

Windows

Should try to load per-user config file, and fall back to a global config file.

pm215 commented 3 years ago

I think that supporting "use config file specified via a command line argument" would be useful as well; this would be handy for testing a new config file without having to copy it into the official installed-on-the-system location.

chocmake commented 1 year ago

Would be nice if the CLI could detect the config file in the application directory on Windows (ie: wherever the CLI binary is located). In that sense it'd make it more portable. Perhaps could be considered for the global config file location, which would also match the behavior of various CLI programs (eg: yt-dlp, Nirsoft tools).

I also like the suggestion of being able to override the default path via an argument, particularly if one could bypass a per-user directory from being created initially.