Skip to content

Commit

Permalink
RemoteDesktop is Finished
Browse files Browse the repository at this point in the history
* chore: format

* chore: base remote

* chore: finished

* chore: finished

* chore: add libxkbcommon as dep
  • Loading branch information
Decodetalkers authored Aug 27, 2023
1 parent ef5c5eb commit d75a276
Show file tree
Hide file tree
Showing 11 changed files with 920 additions and 7 deletions.
30 changes: 30 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

19 changes: 19 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,24 @@ libwayshot = { git = "https://github.com/waycrate/wayshot.git" }
libspa_sys = { package = "libspa-sys", git = "https://gitlab.freedesktop.org/pipewire/pipewire-rs" }
rustix = { version = "0.38.8", features = ["fs", "use-libc"] }

# REMOTE
wayland-protocols = { version = "0.30.0", default-features = false, features = [
"unstable",
"client",
] }
#wayland-protocols = { version = "=0.30.0-beta.13", features = ["client", "unstable"] }


wayland-protocols-wlr = { version = "0.1.0", default-features = false, features = [
"client",
] }
wayland-client = { version = "0.30.2" }

wayland-protocols-misc = { version = "0.1.0", features = ["client"] }
xkbcommon = "0.5.0"
tempfile = "3.5.0"
thiserror = "1.0.47"


[build-dependencies]
slint-build = "1.1.0"
1 change: 1 addition & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
# Libs
pipewire
wayland
libxkbcommon
stdenv

# Tools
Expand Down
2 changes: 1 addition & 1 deletion misc/luminous.portal
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[portal]
DBusName=org.freedesktop.impl.portal.desktop.luminous
Interfaces=org.freedesktop.impl.portal.Screenshot;org.freedesktop.impl.portal.ScreenCast;
Interfaces=org.freedesktop.impl.portal.Screenshot;org.freedesktop.impl.portal.ScreenCast;org.freedesktop.impl.portal.RemoteDesktop;
UseIn=wlroots;sway;Wayfire;river;phosh;Hyprland,nextwm;
3 changes: 3 additions & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
mod remote;
mod request;
mod screencast;
mod screenshot;
mod session;
mod slintbackend;

use remote::RemoteBackend;
use screencast::ScreenCastBackend;
use screenshot::ScreenShotBackend;

Expand Down Expand Up @@ -53,6 +55,7 @@ async fn main() -> anyhow::Result<()> {
.name("org.freedesktop.impl.portal.desktop.luminous")?
.serve_at("/org/freedesktop/portal/desktop", ScreenShotBackend)?
.serve_at("/org/freedesktop/portal/desktop", ScreenCastBackend)?
.serve_at("/org/freedesktop/portal/desktop", RemoteBackend)?
.build()
.await?;

Expand Down
Loading

0 comments on commit d75a276

Please sign in to comment.