bilelmoussaoui / oo7

James Bond went on a new mission as a Secret Service provider
https://bilelmoussaoui.github.io/oo7/oo7/
MIT License
66 stars 12 forks source link

portal: Add meson support #101

Closed A6GibKm closed 2 months ago

A6GibKm commented 2 months ago

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
bilelmoussaoui commented 2 months ago

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