Re: Autopackage frontend

"Isak Savo" <[email protected]>
Newsgroups gmane.comp.autopackage.devel
Message-ID <[email protected]>
2007/9/13, Hylke Donker <[email protected]>:
> Ah ok. So the program package takes care of all the installation and
> uninstallation?

Yes. In fact, the "Manage 3rd party software" gui tool also calls
"package uninstall" in the background.

> But I still don't quite get how to use that protocol. Do I need to read from
> "bla.package" when I execute "package install bla.package"? And when I run
> "package install bla.package", how can I prevent it from poping up the GUI?
> Because I would like to use my own GUI.

You set AUTOPACKAGE_FRONTEND to your own frontend before launching
package install. The logic is here:
http://trac.autopackage.org/browser/main/trunk/share/apkg-io#L320

The frontend will get the path to the FIFO as first argument - you
should open it for reading. I'm not sure why we close it after each
read, perhaps to signal the backend we've finished reading or
something (mike?)

Code is: http://trac.autopackage.org/browser/frontend/trunk/gtkfe/frontend/receiver.c#L58
and
http://trac.autopackage.org/browser/frontend/trunk/gtkfe/frontend/protocol.c#L79

-Isak

---------------------------------------------------------------------
To unsubscribe, e-mail: autopackage-dev-unsubscribe-OfajU3CKLf1/[email protected]
For additional commands, e-mail: autopackage-dev-help-OfajU3CKLf1/[email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.