-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: impl access for new xdg-desktop-portal
- Loading branch information
1 parent
272eed9
commit f8e6504
Showing
3 changed files
with
31 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
[portal] | ||
DBusName=org.freedesktop.impl.portal.desktop.luminous | ||
Interfaces=org.freedesktop.impl.portal.Screenshot;org.freedesktop.impl.portal.ScreenCast;org.freedesktop.impl.portal.RemoteDesktop;org.freedesktop.impl.portal.Settings; | ||
UseIn=wlroots;sway;Wayfire;river;phosh;Hyprland,nextwm; | ||
Interfaces=org.freedesktop.impl.portal.Screenshot;org.freedesktop.impl.portal.ScreenCast;org.freedesktop.impl.portal.RemoteDesktop;org.freedesktop.impl.portal.Settings;org.freedesktop.impl.portal.Access; |
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,27 @@ | ||
use std::collections::HashMap; | ||
|
||
use zbus::{ | ||
dbus_interface, fdo, | ||
zvariant::{OwnedValue, Value}, | ||
}; | ||
|
||
use crate::PortalResponse; | ||
|
||
#[derive(Debug)] | ||
pub struct AccessBackend; | ||
|
||
#[dbus_interface(name = "org.freedesktop.impl.portal.Access")] | ||
impl AccessBackend { | ||
async fn access_dialog( | ||
&self, | ||
_app_id: String, | ||
_parrent_window: String, | ||
_title: String, | ||
_sub_title: String, | ||
_body: String, | ||
_options: HashMap<String, Value<'_>>, | ||
) -> fdo::Result<PortalResponse<HashMap<String, OwnedValue>>> { | ||
Ok(PortalResponse::Success(HashMap::new())) | ||
} | ||
// add code here | ||
} |
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