[haiku-3rdparty-dev] Re: Adding a (persistant) Replicant to the Deskbar

  • From: Rene Gollent <anevilyak@xxxxxxxxx>
  • To: "haiku-3rdparty-dev@xxxxxxxxxxxxx" <haiku-3rdparty-dev@xxxxxxxxxxxxx>
  • Date: Fri, 17 Mar 2017 07:09:39 -0400

On Fri, Mar 17, 2017 at 4:38 AM, Humdinger <dmarc-noreply@xxxxxxxxxxxxx> wrote:

Hello there,

I have a problem getting a replicant added to the Deskbar, that stays there
after a reboot.
The replicant is super simple, no functionality but launching the app
itself. I get my inspirations from "desklink" and PowerStatus, NetworkStatus
etc.
This is the code (hope the formatting sticks):


From the attached sample code, I would hazard a guess that your app is
missing the instantiation function. A persistent deskbar add-on must
export a C function called instantiate_deskbar_item() which returns a
BView that Deskbar can call in order to rebuild the view from the
binary in question, otherwise Deskbar would have no idea how to
reconstruct it on restart. For an example, see
http://cgit.haiku-os.org/haiku/tree/src/apps/processcontroller/ProcessController.cpp#n140

Regards,

Rene

Other related posts: