linux-surface / iptsd

Userspace daemon for Intel Precise Touch & Stylus
GNU General Public License v2.0
86 stars 39 forks source link

Add IPTSD_CONFIG_FILE environment variable #114

Closed danielzgtg closed 1 year ago

danielzgtg commented 1 year ago

Add an environment variable named IPTSD_CONFIG_FILE to load a configuration file from a custom location. This will mainly be used during development.

Currently the configuration is loaded from somewhere in /etc/** and /usr/**. Those directories are normally only writable by root. I have a hack where I did sudo ln -s /home/home/Downloads/iptsd.conf /etc/iptsd.conf. The situation is even worse for those developing on-device. With this PR, I hope to remove this hack.

This environment variable could also be used for automated testing.

StollD commented 1 year ago

Thank you!