1Gnome2::Program(3)    User Contributed Perl Documentation   Gnome2::Program(3)
2
3
4

NAME

6       Gnome2::Program - wrapper for GnomeProgram
7

HIERARCHY

9         Glib::Object
10         +----Gnome2::Program
11

METHODS

13   string = $program->get_app_id
14   string = $program->get_app_version
15   string = $program->get_human_readable_name
16   program = Gnome2::Program->init ($app_id, $app_version, $module_info=undef,
17       ...)
18       •   $app_id (string)
19
20       •   $app_version (string)
21
22       •   $module_info (scalar)
23
24       •   ... (list)
25
26       The list argument is for property-value pairs.
27
28   list = $program->locate_file ($domain, $file_name, $only_if_exists)
29       •   $domain (Gnome2::FileDomain)
30
31       •   $file_name (string)
32
33       •   $only_if_exists (boolean)
34
35       Returns a list of locations.
36
37   moduleinfo = Gnome2::Program->module_load ($mod_name)
38       •   $mod_name (string)
39
40   Gnome2::Program->module_register ($module_info)
41       •   $module_info (scalar)
42
43   boolean = Gnome2::Program->module_registered ($module_info)
44       •   $module_info (scalar)
45
46   program or undef = Gnome2::Program->get_program

PROPERTIES

48       'app-datadir' (string : default undef : readable / writable)
49           Data prefix where this application was installed
50
51       'app-id' (string : default undef : readable)
52           ID string to use for this application
53
54       'app-libdir' (string : default undef : readable / writable)
55           Library prefix where this application was installed
56
57       'app-prefix' (string : default undef : readable / writable)
58           Prefix where this application was installed
59
60       'app-sysconfdir' (string : default undef : readable / writable)
61           Configuration prefix where this application was installed
62
63       'app-version' (string : default undef : readable)
64           Version of this application
65
66       'create-directories' (boolean : default true : readable / writable /
67       construct-only)
68           Create standard GNOME directories on startup
69
70       'enable-sound' (boolean : default true : readable / writable)
71           Enable sound on startup
72
73       'espeaker' (string : default undef : readable / writable)
74           How to connect to esd
75
76       'gnome-datadir' (string : default "/usr/share" : readable / writable /
77       construct-only)
78           Data prefix where GNOME was installed
79
80       'gnome-libdir' (string : default "/usr/lib64" : readable / writable /
81       construct-only)
82           Library prefix where GNOME was installed
83
84       'gnome-path' (string : default undef : readable / writable / construct-
85       only)
86           Path in which to look for installed files
87
88       'gnome-prefix' (string : default "/usr" : readable / writable /
89       construct-only)
90           Prefix where GNOME was installed
91
92       'gnome-sysconfdir' (string : default "/etc" : readable / writable /
93       construct-only)
94           Configuration prefix where GNOME was installed
95
96       'goption-context' (gpointer : default 0 : readable / writable /
97       construct-only)
98           The goption context pointer that GnomeProgram is using
99
100       'human-readable-name' (string : default undef : readable / writable /
101       construct-only)
102           Human readable name of this application
103
104       'popt-context' (gpointer : default 0 : readable)
105           The popt context pointer that GnomeProgram is using
106
107       'popt-flags' (integer : default 0 : writable / construct-only)
108           The flags to use for popt
109
110       'popt-table' (gpointer : default 0 : writable / construct-only)
111           The table of options for popt
112

ENUMS AND FLAGS

114   enum Gnome2::FileDomain
115       •   'unknown' / 'GNOME_FILE_DOMAIN_UNKNOWN'
116
117       •   'libdir' / 'GNOME_FILE_DOMAIN_LIBDIR'
118
119       •   'datadir' / 'GNOME_FILE_DOMAIN_DATADIR'
120
121       •   'sound' / 'GNOME_FILE_DOMAIN_SOUND'
122
123       •   'pixmap' / 'GNOME_FILE_DOMAIN_PIXMAP'
124
125       •   'config' / 'GNOME_FILE_DOMAIN_CONFIG'
126
127       •   'help' / 'GNOME_FILE_DOMAIN_HELP'
128
129       •   'app-libdir' / 'GNOME_FILE_DOMAIN_APP_LIBDIR'
130
131       •   'app-datadir' / 'GNOME_FILE_DOMAIN_APP_DATADIR'
132
133       •   'app-sound' / 'GNOME_FILE_DOMAIN_APP_SOUND'
134
135       •   'app-pixmap' / 'GNOME_FILE_DOMAIN_APP_PIXMAP'
136
137       •   'app-config' / 'GNOME_FILE_DOMAIN_APP_CONFIG'
138
139       •   'app-help' / 'GNOME_FILE_DOMAIN_APP_HELP'
140

SEE ALSO

142       Gnome2, Glib::Object
143
145       Copyright (C) 2003-2004 by the gtk2-perl team.
146
147       This software is licensed under the LGPL.  See Gnome2 for a full
148       notice.
149
150
151
152perl v5.34.0                      2021-07-22                Gnome2::Program(3)
Impressum