Getting Started

Providers are ThunarxProviderPlugins loaded from shared libraries installed in $libdir/thunarx-2/. The shared libraries are linked against the thunarx-2 library.

The extensions must provide three public functions, thunar_extension_initialize(), thunar_extension_shutdown() and thunar_extension_list_types().

thunar_extension_initialize() is passed a ThunarxProviderPlugin object, and is responsible to register all GTypes required by the extension. thunar_extension_shutdown() should perform any extension-specific shutdown required prior to unloading the extension. thunar_extension_list_types() returns an array of GTypes that represent the types of the providers exported by the extension. Thunar will instantiate objects of those types when needed.

Example 1. Basic Structure of an extension

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70