FreeSpacenav / spnavcfg

Spacenav interactive configuration GUI
GNU General Public License v3.0
59 stars 16 forks source link

Make config GUI aware of changes #14

Closed albfan closed 2 years ago

albfan commented 2 years ago

Even if edit manually or if some new actions modify config, GUI should be updated with new config.

we can use inotify: https://www.thegeekstuff.com/2010/04/inotify-c-program-example/

and fork the process to watch the config file, do that makes sense?

jtsiomb commented 2 years ago

This will be unnecessary once I finish the new protocol and transition spnavcfg to it.

Btw spacenavd uses inotify for detecting X server socket presence. See xdetect_linux.c.