troglobit / finit

Fast init for Linux. Cookies included
https://troglobit.com/projects/finit/
MIT License
632 stars 63 forks source link

Search for plugins in /usr and /usr/local too #284

Closed troglobit closed 2 years ago

troglobit commented 2 years ago

Now that https://github.com/troglobit/finit-plugins exist we need to be able to look for plugins in other directories as well as the default.

hongkongkiwi commented 2 years ago

Will you use something like /usr/lib/finit/plugins and /usr/local/lib/finit/plugins?

Will it just automatically load all plugins in there or will there be a way to specify the plugins in the config file?

troglobit commented 2 years ago

Yes exactly, the default is whatever you call configure with, the --libdir option sets the install directory, which in turn is based on --prefix, iirc. So adding a default search path based on /usr/lib/finit/plugins and /usr/local/lib/finit/plugins feels like a good idea. Plugins are loaded waaaaaay before any .conf file can be read, so it has to be a configure/compiple-time thing. So maybe expose it in the configure script?

hongkongkiwi commented 2 years ago

Compile time setting makes sense :)