binreloc and gnome_program_init
"Thomas Leonard" <[email protected]>
| Newsgroups | gmane.comp.autopackage.devel |
|---|---|
| Message-ID | <[email protected]> |
I didn't notice anything on the Autopackage site, but are there any
recommendations about using gnome_program_init in a way that
allows easy binary relocation?
It looks like it's as simple as passing the package's directory to it, e.g.
(from a real GNOME app) we have:
gnome_program_init(PACKAGE, VERSION, LIBGNOMEUI_MODULE,
argc, argv,
GNOME_PARAM_GOPTION_CONTEXT, option_context,
GNOME_PARAM_APP_DATADIR, PACKAGE_DATA_DIR,
GNOME_PARAM_NONE);
I replaced the #defined "PACKAGE_DATA_DIR" with some code to work
out the correct path at runtime, and it worked perfectly.
--
Dr Thomas Leonard http://rox.sourceforge.net
GPG: 9242 9807 C985 3C07 44A6 8B9A AE07 8280 59A5 3CC1
---------------------------------------------------------------------
To unsubscribe, e-mail: autopackage-dev-unsubscribe-OfajU3CKLf1/[email protected]
For additional commands, e-mail: autopackage-dev-help-OfajU3CKLf1/[email protected]