Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

portal: Add meson support #101

Merged
merged 5 commits into from
Aug 10, 2024
Merged

portal: Add meson support #101

merged 5 commits into from
Aug 10, 2024

Conversation

A6GibKm
Copy link
Collaborator

@A6GibKm A6GibKm commented Aug 10, 2024

Test on Silverblue

Temporarily disable selinux

setenforce 0

Create /run/extensions

mkdir /run/extensions

Have a preferences file ~/.config/xdg-desktop-portal/gnome-portals.conf with contents

[preferred]
default=gnome;gtk;
org.freedesktop.impl.portal.Secret=oo7-portal;

and restart xdg-desktop-portal

systemctl --user restart xdg-desktop-portal

From oo7/portal run in a toolbox:

meson --prefix=/usr _build -Dprofile=development
ninja -C _build && DESTDIR=oo7-extension meson install -C _build

From outside the sandbox:

cp -r _build/oo7-extension /run/extensions/ && systemd-sysext refresh --force

One can get more debug output by replacing services for xdp and oo7-portals:

/usr/libexec/xdg-desktop-portal -r -v
RUST_LOG=oo7_portal=debug RUST_BACKTRACE=full /usr/libexec/oo7-portal

@A6GibKm A6GibKm force-pushed the sys-ext branch 2 times, most recently from 429077c to f5f89ca Compare August 10, 2024 09:51
portal/Cargo.toml Outdated Show resolved Hide resolved
portal/src/main.rs Outdated Show resolved Hide resolved
portal/src/main.rs Outdated Show resolved Hide resolved
@bilelmoussaoui
Copy link
Owner

Would be nice to add a CI job for this :)

@bilelmoussaoui bilelmoussaoui merged commit ce133a3 into main Aug 10, 2024
4 of 5 checks passed
@bilelmoussaoui bilelmoussaoui deleted the sys-ext branch August 10, 2024 15:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants