View Single Post
Old 06-20-2025, 11:37 PM   #1
kodermike
Member
kodermike is on a distinguished road
 
kodermike's Avatar
 
Posts: 19
Karma: 60
Join Date: Dec 2024
Location: PNW, US
Device: kobo
Question Best way for a plugin to interact with another plugin? [SSH.koplugin]

I have a plugin I've been working on, and one of the things it does is disable the SSH plugin (along with a bunch of other things, of course). What I discovered in a no-duh moment was that if dropbear is running when the plugin is disabled, dropbear just keeps running. Fun times can ensue.

Is there a good way to call a function in another plugin? I know outright killing dropbear if it's running kills the pid, and that's what I have at the moment, but that feels so dirty. Is using userpatch from within a plugin a better idea, so I can access the function for ssh to stop? Or is using userpatch from a plugin frowned on?

Thanks!
kodermike is offline   Reply With Quote