-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2126d2c
commit 4ffce73
Showing
15 changed files
with
422 additions
and
130 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
extends DBusClientNode | ||
|
||
|
||
func _on_request_finished(response: DBusMessage): | ||
assert(response) | ||
print(response.read_single(TYPE_FLOAT)) | ||
|
||
func _on_timer_timeout(): | ||
open() | ||
var err=request("Divide", _on_request_finished, 50, 10) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
extends DBusClientNode | ||
|
||
func _ready(): | ||
open() | ||
#godots XMLParser is horrible so if you want to display this use some C++ library or plugin | ||
print(introspect()) | ||
|
||
# if you have a parser would need to call this down the tree | ||
# to replicate busctl tree <destination> | ||
print(introspect_path("/org")) | ||
|
||
close() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
[gd_scene load_steps=2 format=3 uid="uid://c670mp7v4rfln"] | ||
|
||
[ext_resource type="Script" path="res://demo/dbus_client_util.gd" id="1_lk0kj"] | ||
|
||
[node name="DBusClientUtil" type="DBusClientNode"] | ||
destination = "org.freedesktop.portal.Desktop" | ||
path = "/org/freedesktop/portal/desktop" | ||
interface = "org.freedesktop.portal.Desktop" | ||
autostart = false | ||
script = ExtResource("1_lk0kj") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.