I am following the wiki article for Sway[0] to configure Firefox
screensharing and failed at executing xdg-desktop-portal-wlr:
$ exec /usr/libexec/xdg-desktop-portal-wlr
... [ERROR] - config: no config file found
which is true: /etc/xdg/xdg-desktop-portal-wlr/config is missing.
So, I wonder what we would do about this:
- Package a default config that works. Maybe the one in the contrib [1] or in xdg-desktop-portal-wlr(5)?
- Put an example config in the wiki with guide to customize. Speaking of the wiki, the instruction to run `exec pipewire` seems to conflict with the wiki page on pipewire[2]
Should I file an issue on the aport repo?
[0]: https://wiki.alpinelinux.org/wiki/Sway#Configuration
[1]: https://github.com/emersion/xdg-desktop-portal-wlr/blob/master/contrib/config.sample
[2]: https://wiki.alpinelinux.org/wiki/PipeWire#Usage
On Thu Sep 8, 2022 at 3:50 PM CEST, Huy Ngo wrote:
> I am following the wiki article for Sway[0] to configure Firefox> screensharing and failed at executing xdg-desktop-portal-wlr:>> $ exec /usr/libexec/xdg-desktop-portal-wlr> ... [ERROR] - config: no config file found>> which is true: /etc/xdg/xdg-desktop-portal-wlr/config is missing.>> So, I wonder what we would do about this:>> - Package a default config that works. Maybe the one in the contrib [1] or in xdg-desktop-portal-wlr(5)?
none of the options seem to be good to set/hardcode as a default- is it
possible to have an empty config that is accepted? by default a chooser
is only needed with >1 monitor, and the rest don't seem required
> - Put an example config in the wiki with guide to customize. Speaking of the wiki, the instruction to run `exec pipewire` seems to conflict with the wiki page on pipewire[2]
which exec pipewire?
>> Should I file an issue on the aport repo?>> [0]: https://wiki.alpinelinux.org/wiki/Sway#Configuration> [1]: https://github.com/emersion/xdg-desktop-portal-wlr/blob/master/contrib/config.sample> [2]: https://wiki.alpinelinux.org/wiki/PipeWire#Usage
On Thu Sep 8, 2022 at 9:59 PM CST, alice wrote:
> On Thu Sep 8, 2022 at 3:50 PM CEST, Huy Ngo wrote:> > - Package a default config that works. Maybe the one in the contrib> > [1] or in xdg-desktop-portal-wlr(5)?> none of the options seem to be good to set/hardcode as a default- is> it possible to have an empty config that is accepted? by default a> chooser is only needed with >1 monitor, and the rest don't seem> required
I see, thanks. I just tested with an empty config and it does work with
one screen.
> > - Put an example config in the wiki with guide to customize.> > Speaking of the wiki, the instruction to run `exec pipewire` seems> > to conflict with the wiki page on pipewire[2]> which exec pipewire?
It was in the screenshare instruction, which contradicts the instruction
that one should use pipewire startup wrapper. Not too important detail,
though.
> >> > [0]: https://wiki.alpinelinux.org/wiki/Sway#Configuration> > [1]: https://github.com/emersion/xdg-desktop-portal-wlr/blob/master/contrib/config.sample> > [2]: https://wiki.alpinelinux.org/wiki/PipeWire#Usage
On Sun Sep 11, 2022 at 3:53 PM CEST, Huy Ngo wrote:
> On Thu Sep 8, 2022 at 9:59 PM CST, alice wrote:> > On Thu Sep 8, 2022 at 3:50 PM CEST, Huy Ngo wrote:> > > - Package a default config that works. Maybe the one in the contrib> > > [1] or in xdg-desktop-portal-wlr(5)?> > none of the options seem to be good to set/hardcode as a default- is> > it possible to have an empty config that is accepted? by default a> > chooser is only needed with >1 monitor, and the rest don't seem> > required>> I see, thanks. I just tested with an empty config and it does work with> one screen.
and without a config it fails/reports errors? in that case, i should add
an empty one
>> > > - Put an example config in the wiki with guide to customize.> > > Speaking of the wiki, the instruction to run `exec pipewire` seems> > > to conflict with the wiki page on pipewire[2]> > which exec pipewire?>> It was in the screenshare instruction, which contradicts the instruction> that one should use pipewire startup wrapper. Not too important detail,> though.
aha, thanks, i see it now. fixed
>> > >> > > [0]: https://wiki.alpinelinux.org/wiki/Sway#Configuration> > > [1]: https://github.com/emersion/xdg-desktop-portal-wlr/blob/master/contrib/config.sample> > > [2]: https://wiki.alpinelinux.org/wiki/PipeWire#Usage