[haiku-development] Re: input filter: restarting server?

  • From: Ingo Weinhold <ingo_weinhold@xxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Wed, 2 Mar 2016 10:50:17 +0100

On 02.03.2016 08:25, Adrien Destugues wrote:

2 mars 2016 07:56 "Pete Goodeve" <pete.goodeve@xxxxxxxxxxxx> a écrit:
I've just been building an hpkg for my little "CapsLock" utility.
I've been testing it out via the config/packages folder (rather
that the system equivalent for now). It works, except it seems
to need a reboot or manual restart of the input_server to
become active.

OTOH, if I directly drag the filter binary into or out of
.../non-packaged/add-ons/input_server/filters, the function is
immediately activated/deactivated.

Why the difference? (I'd rather not use a post-install script
if I can help it.)

Sounds like a problem wth node monitoring in the packagefs?

I'd suspect the problem to be on the receiving end of the notifications. And sure enough, the input server uses AddOnMonitorHandler whose AddAddOnDirectories() simply ignores non-existing directories. So unless one already has a package in the respective installation location that provides the directory for an add-on kind when the input server is started, node monitoring for that add-on kind in that installation locaiton won't work.

[BTW, it'd be nice if I didn't have to be online to install the
package without error. (:-/) If I'm not, the installer still tries
to update the depot, and fails with a General System Error.]

You can manually copy your package to ~/config/package to install without using 
HaikuDepot. This should work even when offline, as long as it doesn't need to 
download any dependencies, of course.

If a repository files of all configured repositories is cached already, that might work. I'm not entirely sure, though. If a repository file is missing, however, I don't think it will work.

CU, Ingo


Other related posts: