---
name: "Gnome2::Program"
section: "3pm"
platform: "linux"
package: "libgnome2-perl"
version: "1.046-3+b1"
release: "Debian 9 (Stretch)"
platforms: ["linux"]
url: "https://new.carta.tech/Gnome2::Program"
---

# Gnome2::Program(3pm)

wrapper for GnomeProgram

## NAME

Gnome2::Program - wrapper for GnomeProgram

## HIERARCHY

```
  Glib::Object
  +----Gnome2::Program
```

## METHODS

### string = $program-\>get\_app\_id

### string = $program-\>get\_app\_version

### string = $program-\>get\_human\_readable\_name

### program = Gnome2::Program-\>init ($app\_id, $app\_version, $module\_info=undef, ...)

- •

  `$app_id` (string)

- •

  `$app_version` (string)

- •

  `$module_info` (scalar)

- •

  ... (list)

The list argument is for property-value pairs.

### list = $program-\>locate\_file ($domain, $file\_name, $only\_if\_exists)

- •

  `$domain` (Gnome2::FileDomain)

- •

  `$file_name` (string)

- •

  `$only_if_exists` (boolean)

Returns a list of locations.

### moduleinfo = Gnome2::Program-\>module\_load ($mod\_name)

- •

  `$mod_name` (string)

### Gnome2::Program-\>module\_register ($module\_info)

- •

  `$module_info` (scalar)

### boolean = Gnome2::Program-\>module\_registered ($module\_info)

- •

  `$module_info` (scalar)

### program or undef = Gnome2::Program-\>get\_program

## PROPERTIES

- 'app-datadir' (string : default undef : readable / writable)

  Data prefix where this application was installed

- 'app-id' (string : default undef : readable)

  ID string to use for this application

- 'app-libdir' (string : default undef : readable / writable)

  Library prefix where this application was installed

- 'app-prefix' (string : default undef : readable / writable)

  Prefix where this application was installed

- 'app-sysconfdir' (string : default undef : readable / writable)

  Configuration prefix where this application was installed

- 'app-version' (string : default undef : readable)

  Version of this application

- 'create-directories' (boolean : default true : readable / writable / construct-only)

  Create standard GNOME directories on startup

- 'enable-sound' (boolean : default true : readable / writable)

  Enable sound on startup

- 'espeaker' (string : default undef : readable / writable)

  How to connect to esd

- 'gnome-datadir' (string : default "/usr/share" : readable / writable / construct-only)

  Data prefix where GNOME was installed

- 'gnome-libdir' (string : default "/usr/lib/x86\_64-linux-gnu" : readable / writable / construct-only)

  Library prefix where GNOME was installed

- 'gnome-path' (string : default undef : readable / writable / construct-only)

  Path in which to look for installed files

- 'gnome-prefix' (string : default "/usr" : readable / writable / construct-only)

  Prefix where GNOME was installed

- 'gnome-sysconfdir' (string : default "/etc" : readable / writable / construct-only)

  Configuration prefix where GNOME was installed

- 'goption-context' (gpointer : default 0 : readable / writable / construct-only)

  The goption context pointer that GnomeProgram is using

- 'human-readable-name' (string : default undef : readable / writable / construct-only)

  Human readable name of this application

- 'popt-context' (gpointer : default 0 : readable)

  The popt context pointer that GnomeProgram is using

- 'popt-flags' (integer : default 0 : writable / construct-only)

  The flags to use for popt

- 'popt-table' (gpointer : default 0 : writable / construct-only)

  The table of options for popt

## ENUMS AND FLAGS

### enum Gnome2::FileDomain

- •

  'unknown' / 'GNOME\_FILE\_DOMAIN\_UNKNOWN'

- •

  'libdir' / 'GNOME\_FILE\_DOMAIN\_LIBDIR'

- •

  'datadir' / 'GNOME\_FILE\_DOMAIN\_DATADIR'

- •

  'sound' / 'GNOME\_FILE\_DOMAIN\_SOUND'

- •

  'pixmap' / 'GNOME\_FILE\_DOMAIN\_PIXMAP'

- •

  'config' / 'GNOME\_FILE\_DOMAIN\_CONFIG'

- •

  'help' / 'GNOME\_FILE\_DOMAIN\_HELP'

- •

  'app-libdir' / 'GNOME\_FILE\_DOMAIN\_APP\_LIBDIR'

- •

  'app-datadir' / 'GNOME\_FILE\_DOMAIN\_APP\_DATADIR'

- •

  'app-sound' / 'GNOME\_FILE\_DOMAIN\_APP\_SOUND'

- •

  'app-pixmap' / 'GNOME\_FILE\_DOMAIN\_APP\_PIXMAP'

- •

  'app-config' / 'GNOME\_FILE\_DOMAIN\_APP\_CONFIG'

- •

  'app-help' / 'GNOME\_FILE\_DOMAIN\_APP\_HELP'

## SEE ALSO

Gnome2, Glib::Object

## COPYRIGHT

Copyright (C) 2003-2004 by the gtk2-perl team.

This software is licensed under the LGPL.  See Gnome2 for a full notice.
