main
3.9.1
Last change
on this file was
eb2d836,
checked in by Natalia Serrano <natalia.serrano@…>, 5 weeks ago
|
refs #2060 add script for setting browser URL
|
-
Property mode set to
100644
|
File size:
336 bytes
|
Line | |
---|
1 | #!/usr/bin/python3 |
---|
2 | |
---|
3 | import sys |
---|
4 | import dbus |
---|
5 | |
---|
6 | if 2 != len(sys.argv): |
---|
7 | sys.exit (1) |
---|
8 | |
---|
9 | dest = 'es.opengnsys.OGBrowser.browser' |
---|
10 | path = '/' |
---|
11 | interface = None |
---|
12 | method = 'setURL' |
---|
13 | signature = 's' |
---|
14 | url = sys.argv[1] |
---|
15 | |
---|
16 | b = dbus.SystemBus() |
---|
17 | try: |
---|
18 | b.call_blocking (dest, path, interface, method, 's', [url]) |
---|
19 | except Exception as e: |
---|
20 | sys.exit (1) |
---|
Note: See
TracBrowser
for help on using the repository browser.