seturl.sh
816 Bytes
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
#!/bin/bash
#
# https://stackoverflow.com/questions/48648952/set-get-property-using-dbus-send
#
dbus-send \
--session \
--dest=br.com.bb.pw3270.a\
--print-reply \
"/br/com/bb/tn3270/session" \
"org.freedesktop.DBus.Properties.Set" \
string:br.com.bb.tn3270.session \
string:url \
variant:string:${1}
#dbus-send --system --dest=$BUS_NAME --print-reply $OBJECT_PATH \
#org.freedesktop.DBus.Properties.Set string:com.pgaur.GDBUS string:Status variant:uint32:10
#gdbus \
# introspect \
# --session \
# --dest=br.com.bb.pw3270.a \
# --object-path=/br/com/bb/tn3270/session
#gdbus \
# call \
# --session \
# --dest br.com.bb.pw3270.a \
# --object-path /br/com/bb/tn3270/session \
# --method org.freedesktop.DBus.Properties.Set \
# "br.com.bb.tn3270.session" \
# "url" \
# ${1}