Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Whereto put "plugins" in linux

I am currently developing/hacking an image analyzing/transforming tool. The filters therein will be loaded at runtime using dlopen&co.

My question is where do *nix tools usually put plugins (*.so files) when installed?

bin/program
lib/program/plugins/thisandthat.so

maybe?

Secondly how do I use it and where do I put it during development without installing it. (this is probably the tricky part)

I want to avoid shell-scripts if possible.

thanks in regard Ronny

like image 1000
Ronny Brendel Avatar asked Jul 10 '26 12:07

Ronny Brendel


2 Answers

Usually /usr/lib/programmname should be a good spot

During development I'd create a command line paramter to specify the plugin search path and just leave the plugins in the build-dir for example.

like image 162
tliff Avatar answered Jul 12 '26 02:07

tliff


Consider:

/usr/lib/program/*.so
like image 43
Andrejs Cainikovs Avatar answered Jul 12 '26 01:07

Andrejs Cainikovs



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!