@linmob Regarding
teddit.net/r/pinephone/comment : One can run the app in a nested session on your PC/laptop (I use that every a lot):

phoc -E /usr/libexec/phosh; WAYLAND_DISPLAY=wayland-1 your-app

You can also use this during CI to take screenshots of your app like we do in phosh itself: gitlab.gnome.org/guidog/phosh/

This falls short if you need modem access, etc and your PC doesn't have a modem, etc but for checking scaling it works and gives you easy log, gdb etc access.

@agx Thank you! That's really helpful - I'll post this to the reddit thread. 👍

Follow

@linmob here's a full invocation for nested on /#PureOS:

WLR_BACKENDS=wayland GSETTINGS_BACKEND=memory phoc -C /usr/share/phosh/phoc.ini -E /usr/libexec/phosh

The `WLR_BACKENDS` picks the wlroots backend (on gnome-shell/mutter you might want to prefer x11 as mutter otherwise gets the initial window size wrong). The gsettings backend makes sure it uses defaults and the phoc.ini ensures the right resolution.

@linmob it'd be happy to add a script similar to `_build/run` that gets the path's right based on meson's default so this becomes a one liner.

Sign in to participate in the conversation
Librem Social

Librem Social is an opt-in public network. Messages are shared under Creative Commons BY-SA 4.0 license terms. Policy.

Stay safe. Please abide by our code of conduct.

(Source code)

image/svg+xml Librem Chat image/svg+xml