-
Notifications
You must be signed in to change notification settings - Fork 2
/
dbus.js
41 lines (38 loc) · 1.22 KB
/
dbus.js
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
const Gio = imports.gi.Gio;
const Lang = imports.lang;
const GuakeIface = '<node> \
<interface name="org.guake.RemoteControl"> \
<method name="quit"/> \
<method name="show_about"/> \
<method name="rename_current_tab"> \
<arg type="s" direction="in" name="name"/> \
</method> \
<method name="execute_command"> \
<arg type="s" direction="in" name="command"/> \
</method> \
<method name="show_prefs"/> \
<method name="show"/> \
<method name="hide"/> \
<method name="show_hide"/> \
<method name="get_tab_name"> \
<arg type="i" direction="in" name="tab_index"/> \
<arg type="s" direction="out" name="tab_name"/> \
</method> \
<method name="get_selected_tab"> \
<arg type="i" direction="out" name="tab_index"/> \
</method> \
<method name="get_tab_count"> \
<arg type="i" direction="out" name="tab_count"/> \
</method> \
<method name="add_tab"> \
<arg type="s" direction="in" name="directory"/> \
</method> \
<method name="select_tab"> \
<arg type="i" direction="in" name="tab_index"/> \
</method> \
</interface> \
</node>';
let GuakeProxyWrapper = Gio.DBusProxy.makeProxyWrapper(GuakeIface);
function GuakeProxy() {
return new GuakeProxyWrapper(Gio.DBus.session, 'org.guake.RemoteControl', '/org/guake/RemoteControl');
}