| 32 D. Edit the dbus-gaim.service file you've just copied, and replace |
32 D. Edit the dbus-gaim.service file you've just copied, and replace |
| 33 the path in the "Exec=" line with the path to your gaim |
33 the path in the "Exec=" line with the path to your gaim |
| 34 executable. |
34 executable. |
| 35 |
35 |
| 36 |
36 |
| 37 4. Start DBUS if you haven't done it already |
37 4. Start Session DBUS if you haven't done it already |
| 38 |
38 |
| 39 eval `dbus-launch --session` |
39 eval `dbus-launch --session` |
| 40 export DBUS_SESSION_BUS_ADDRESS DBUS_SESSION_BUS_PID |
40 export DBUS_SESSION_BUS_ADDRESS DBUS_SESSION_BUS_PID |
| 41 |
41 |
| 42 These commands will set the two above shell variables. These |
42 These commands will set the two above shell variables. These |
| 43 variables must be set before running any dbus-aware programs. |
43 variables must be set before running any dbus-aware programs. |
| 44 |
44 |
| |
45 Start gaim as usual. To communicate with it, use "gaim-send". When |
| |
46 you execute gaim-send, the dbus system will automatically start a gaim |
| |
47 process if one is not running already. |
| 45 |
48 |
| 46 Now you can start gaim as usual. A new program, gaim-client can be |
|
| 47 used to issue commands to a running gaim process |
|
| 48 |
|
| 49 gaim-client command1 command2 ... |
|
| 50 |
|
| 51 At the moment there are only three commands: ping, quit, and connect. |
|
| 52 When you execute gaim-client, the dbus system will automatically start |
|
| 53 a gaim process if one is not running already. |
|