Mailing List Archive

Cannot share screen via google meet with Firefox and Sway
Hey everyone. I am trying to share my screen via google meet in Firefox. I
am running Sway as my window manager. I am also running pipewire instead of
pulseaudio.

Whenever I select the "Present now" option, the only option I can select is
"Use operating system settings". If I click Allow, Meet will tell me I am
sharing my screen, but I am given no indication that I am sharing
successfully.

I also tried to join the meeting from my phone to see what's on the other
end, and my screen was not being shared to my phone.

My sway configuration contains this line, which I am told is necessary for
screen sharing:
*exec --no-startup-id dbus-update-activation-environment --all*

I also added these lines to my .bashrc:
*export MOZ_ENABLE_WAYLAND=1*
*export XDG_SESSION_TYPE=wayland*
*export XDG_CURRENT_DESKTOP=sway*

I even recompiled firefox with the *screencast* flag and rebooted my PC,
but it still didn't help.

However, one thing I did notice is that if I run *xdg-desktop-portal-wlr
--loglevel=TRACE*, I get an error:













*jamie@localhost ~ $ /usr/libexec/xdg-desktop-portal-wlr
--loglevel=TRACE2023/11/26 22:48:19 [TRACE] - config: trying config file
/home/jamie/.config/xdg-desktop-portal-wlr/sway2023/11/26 22:48:19 [TRACE]
- config: trying config file
/home/jamie/.config/xdg-desktop-portal-wlr/config2023/11/26 22:48:19
[TRACE] - config: trying config file
/etc/xdg/xdg-desktop-portal-wlr/sway2023/11/26 22:48:19 [TRACE] - config:
trying config file /etc/xdg/xdg-desktop-portal-wlr/config2023/11/26
22:48:19 [ERROR] - config: no config file found2023/11/26 22:48:19 [DEBUG]
- config: outputname: (null)2023/11/26 22:48:19 [DEBUG] - config: max_fps:
0.0000002023/11/26 22:48:19 [DEBUG] - config: exec_before:
(null)2023/11/26 22:48:19 [DEBUG] - config: exec_after: (null)2023/11/26
22:48:19 [DEBUG] - config: chooser_cmd: (null)2023/11/26 22:48:19 [DEBUG] -
config: chooser_type: default2023/11/26 22:48:19 [ERROR] - dbus: failed to
connect to user bus: No such file or directoryjamie@localhost ~ $*

Also, while *xdg-desktop-portal-wlr* is not running, *xdg-desktop-portal*
is:






*jamie@localhost ~ $ ps -elfww | grep -i xdg0 S jamie 3089 1 0 69
-11 - 76529 do_sys 22:39 ? 00:00:00
/usr/libexec/xdg-permission-store0 S jamie 3106 1 0 69 -11 -
95583 do_sys 22:39 ? 00:00:00 /usr/libexec/xdg-desktop-portal0 S
jamie 3112 1 0 69 -11 - 132469 do_sys 22:39 ? 00:00:00
/usr/libexec/xdg-document-portal0 S jamie 4076 3998 0 80 0 - 1683
pipe_r 22:49 pts/1 00:00:00 grep --colour=auto -i xdgjamie@localhost ~ $
*

I'm really at a loss here. I don't know what to check next. Lots of guides,
suhc as the troubleshooting section of the *obs* package wiki page, mention
a *screencast* flag as part of the xdg-desktop-portal package, but there's
no such flag:




















*jamie@localhost ~ $ sudo equery u xdg-desktop-portal[ Legend : U - final
flag setting for installation][ : I - package is installed with flag
][ Colors : set, unset ] * Found these USE
flags for sys-apps/xdg-desktop-portal-1.18.0-r1: U I - - flatpak :
Enable sys-apps/flatpak integration - - geolocation : Enable physical
position determination + + seccomp : Use sys-apps/bubblewrap (which
requires seccomp) to sandbox some functionality like icon handling - -
systemd : Enable use of systemd-specific libraries and features like
socket activation or session tracking - - test : Enable
dependencies and/or preparations necessary to run tests (usually controlled
by FEATURES=test but can be toggled
independently)jamie@localhost ~ $ sudo equery u xdg-desktop-portal-wlr[
Legend : U - final flag setting for installation][ : I - package is
installed with flag ][ Colors : set, unset
] * Found these USE flags for gui-libs/xdg-desktop-portal-wlr-0.5.0: U I +
+ elogind : Enable support for rootless session via elogind - - systemd :
Enable use of systemd-specific libraries and features like socket
activation or session trackingjamie@localhost ~ $*

Any further help with this would be much appreciated.
--
Sincerely,
Jamie
Re: Cannot share screen via google meet with Firefox and Sway [ In reply to ]
Hi Jamie,

Jamie Getty <jamiegetty1@gmail.com> writes:

> Hey everyone. I am trying to share my screen via google meet in Firefox. I
> am running Sway as my window manager. I am also running pipewire instead of
> pulseaudio.
>
> Whenever I select the "Present now" option, the only option I can select is
> "Use operating system settings". If I click Allow, Meet will tell me I am
> sharing my screen, but I am given no indication that I am sharing
> successfully.
>
> I also tried to join the meeting from my phone to see what's on the other
> end, and my screen was not being shared to my phone.
>
> My sway configuration contains this line, which I am told is necessary for
> screen sharing:
> *exec --no-startup-id dbus-update-activation-environment --all*
>
> I also added these lines to my .bashrc:
> *export MOZ_ENABLE_WAYLAND=1*
> *export XDG_SESSION_TYPE=wayland*
> *export XDG_CURRENT_DESKTOP=sway*
>
> I even recompiled firefox with the *screencast* flag and rebooted my PC,
> but it still didn't help.
>
> However, one thing I did notice is that if I run *xdg-desktop-portal-wlr
> --loglevel=TRACE*, I get an error:
>
>
>
>
>
>
>
>
>
>
>
>
>
> *jamie@localhost ~ $ /usr/libexec/xdg-desktop-portal-wlr
> --loglevel=TRACE2023/11/26 22:48:19 [TRACE] - config: trying config file
> /home/jamie/.config/xdg-desktop-portal-wlr/sway2023/11/26 22:48:19 [TRACE]
> - config: trying config file
> /home/jamie/.config/xdg-desktop-portal-wlr/config2023/11/26 22:48:19
> [TRACE] - config: trying config file
> /etc/xdg/xdg-desktop-portal-wlr/sway2023/11/26 22:48:19 [TRACE] - config:
> trying config file /etc/xdg/xdg-desktop-portal-wlr/config2023/11/26
> 22:48:19 [ERROR] - config: no config file found2023/11/26 22:48:19 [DEBUG]
> - config: outputname: (null)2023/11/26 22:48:19 [DEBUG] - config: max_fps:
> 0.0000002023/11/26 22:48:19 [DEBUG] - config: exec_before:
> (null)2023/11/26 22:48:19 [DEBUG] - config: exec_after: (null)2023/11/26
> 22:48:19 [DEBUG] - config: chooser_cmd: (null)2023/11/26 22:48:19 [DEBUG] -
> config: chooser_type: default2023/11/26 22:48:19 [ERROR] - dbus: failed to
> connect to user bus: No such file or directoryjamie@localhost ~ $*
>
> Also, while *xdg-desktop-portal-wlr* is not running, *xdg-desktop-portal*
> is:
>
>
>
>
>
>
> *jamie@localhost ~ $ ps -elfww | grep -i xdg0 S jamie 3089 1 0 69
> -11 - 76529 do_sys 22:39 ? 00:00:00
> /usr/libexec/xdg-permission-store0 S jamie 3106 1 0 69 -11 -
> 95583 do_sys 22:39 ? 00:00:00 /usr/libexec/xdg-desktop-portal0 S
> jamie 3112 1 0 69 -11 - 132469 do_sys 22:39 ? 00:00:00
> /usr/libexec/xdg-document-portal0 S jamie 4076 3998 0 80 0 - 1683
> pipe_r 22:49 pts/1 00:00:00 grep --colour=auto -i xdgjamie@localhost ~ $
> *
>
> I'm really at a loss here. I don't know what to check next. Lots of guides,
> suhc as the troubleshooting section of the *obs* package wiki page, mention
> a *screencast* flag as part of the xdg-desktop-portal package, but there's
> no such flag:
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> *jamie@localhost ~ $ sudo equery u xdg-desktop-portal[. Legend : U - final
> flag setting for installation][ : I - package is installed with flag
> ][ Colors : set, unset ] * Found these USE
> flags for sys-apps/xdg-desktop-portal-1.18.0-r1: U I - - flatpak :
> Enable sys-apps/flatpak integration - - geolocation : Enable physical
> position determination + + seccomp : Use sys-apps/bubblewrap (which
> requires seccomp) to sandbox some functionality like icon handling - -
> systemd : Enable use of systemd-specific libraries and features like
> socket activation or session tracking - - test : Enable
> dependencies and/or preparations necessary to run tests (usually controlled
> by FEATURES=test but can be toggled
> independently)jamie@localhost ~ $ sudo equery u xdg-desktop-portal-wlr[.
> Legend : U - final flag setting for installation][ : I - package is
> installed with flag ][ Colors : set, unset
> ] * Found these USE flags for gui-libs/xdg-desktop-portal-wlr-0.5.0: U I +
> + elogind : Enable support for rootless session via elogind - - systemd :
> Enable use of systemd-specific libraries and features like socket
> activation or session trackingjamie@localhost ~ $*
>
> Any further help with this would be much appreciated.

I suspect you're running into one (or both) of these two common
problems:

https://wiki.gentoo.org/wiki/Sway#Screen_sharing_does_not_work
https://wiki.gentoo.org/wiki/Sway#Failed_to_connect_to_user_bus

Please ensure you have a D-Bus user session.

HTH, have a lovely day!
--
Arsen Arsenovi?
Re: Cannot share screen via google meet with Firefox and Sway [ In reply to ]
How do I ensure I have a dbus user session running? Those links just lead
to forum posts with varying issues and I'm not sure which to follow.
Here are the dbus-related process I have running:






*jamie@localhost ~ $ ps -elfww | grep -i dbus5 S message+ 2244 1
0 80 0 - 1248 - 22:37 ? 00:00:00
/usr/bin/dbus-daemon --system1 S jamie 3062 1 0 69 -11 -
1099 do_sel 22:39 ? 00:00:00 dbus-launch --autolaunch
d356cf66315c624d08f86cb063dc4f82 --binary-syntax --close-stderr1 S jamie
3069 1 0 69 -11 - 1248 do_epo 22:39 ? 00:00:00
/usr/bin/dbus-daemon --syslog-only --fork --print-pid 5 --print-address 7
--session0 S jamie 3104 3099 0 69 -11 - 1186 do_epoc 22:39 ?
00:00:00 /usr/bin/dbus-daemon
--config-file=/usr/share/defaults/at-spi2/accessibility.conf --nofork
--print-address 10 --address=unix:path=/run/user/1000/at-spi/bus_10 S jamie
5251 3998 0 80 0 - 1683 pipe_r 23:15 pts/1 00:00:00
grep --colour=auto -i dbusjamie@localhost ~ $ *

On Sun, Nov 26, 2023 at 11:03?PM Arsen Arsenovi? <arsen@gentoo.org> wrote:

> I suspect you're running into one (or both) of these two common
> problems:
>
> https://wiki.gentoo.org/wiki/Sway#Screen_sharing_does_not_work
> https://wiki.gentoo.org/wiki/Sway#Failed_to_connect_to_user_bus
>
> Please ensure you have a D-Bus user session.
>

--
Sincerely,
Jamie
Re: Cannot share screen via google meet with Firefox and Sway [ In reply to ]
Hi Jamie,

Jamie Getty <jamiegetty1@gmail.com> writes:

> How do I ensure I have a dbus user session running? Those links just lead
> to forum posts with varying issues and I'm not sure which to follow.
> Here are the dbus-related process I have running:

Make sure to wrap it in dbus-run-session. See
https://wiki.gentoo.org/wiki/Sway#Starting_Sway

Then add the

exec --no-startup-id dbus-update-activation-environment --all

... line from the screen sharing troubleshooting entry.
--
Arsen Arsenovi?
Re: Cannot share screen via google meet with Firefox and Sway [ In reply to ]
I'm not sure what you mean by *wrap it in dbus-run-session*.
I use SDDM as my display manager and I start Sway from there.
My sway config also contains this line, as previously mentioned:

*# Enable screen sharingexec --no-startup-id
dbus-update-activation-environment --all*

However, I noticed that if I try running this line by itself in a terminal,
I get this output:


*jamie@localhost ~ $ exec --no-startup-id
dbus-update-activation-environment --allbash: exec: --: invalid optionexec:
usage: exec [-cl] [-a name] [command [argument ...]] [redirection ...]*

On Sun, Nov 26, 2023 at 11:37?PM Arsen Arsenovi? <arsen@gentoo.org> wrote:

> Hi Jamie,
>
> Jamie Getty <jamiegetty1@gmail.com> writes:
>
> > How do I ensure I have a dbus user session running? Those links just lead
> > to forum posts with varying issues and I'm not sure which to follow.
> > Here are the dbus-related process I have running:
>
> Make sure to wrap it in dbus-run-session. See
> https://wiki.gentoo.org/wiki/Sway#Starting_Sway
>
> Then add the
>
> exec --no-startup-id dbus-update-activation-environment --all
>
> ... line from the screen sharing troubleshooting entry.
> --
> Arsen Arsenovi?
>


--
Sincerely,
Jamie
Re: Cannot share screen via google meet with Firefox and Sway [ In reply to ]
Jamie Getty <jamiegetty1@gmail.com> writes:

> I'm not sure what you mean by *wrap it in dbus-run-session*.
> I use SDDM as my display manager and I start Sway from there.
> My sway config also contains this line, as previously mentioned:
>
> *# Enable screen sharingexec --no-startup-id
> dbus-update-activation-environment --all*
>
> However, I noticed that if I try running this line by itself in a terminal,
> I get this output:
>
>
> *jamie@localhost ~ $ exec --no-startup-id
> dbus-update-activation-environment --allbash: exec: --: invalid optionexec:
> usage: exec [-cl] [-a name] [command [argument ...]] [redirection ...]*

Sway configs aren't shells scripts. In shell, you'd run
'dbus-update-activation-environment --all' alone. Does qdbus --session
output any errors or just a bunch of names and numbers?

SDDM should set up a D-Bus session bus, I believe.

I'm quite sure that your D-Bus session bus is not working properly
because of the error you initially posted.

> On Sun, Nov 26, 2023 at 11:37?PM Arsen Arsenovi? <arsen@gentoo.org> wrote:
>
>> Hi Jamie,
>>
>> Jamie Getty <jamiegetty1@gmail.com> writes:
>>
>> > How do I ensure I have a dbus user session running? Those links just lead
>> > to forum posts with varying issues and I'm not sure which to follow.
>> > Here are the dbus-related process I have running:
>>
>> Make sure to wrap it in dbus-run-session. See
>> https://wiki.gentoo.org/wiki/Sway#Starting_Sway
>>
>> Then add the
>>
>> exec --no-startup-id dbus-update-activation-environment --all
>>
>> ... line from the screen sharing troubleshooting entry.
>> --
>> Arsen Arsenovi?
>>


--
Arsen Arsenovi?
Re: Cannot share screen via google meet with Firefox and Sway [ In reply to ]
I have tried running *dbus-run-session sway* manually (sway is already
running when I ran this but I wanted to see what errors I got regarding
xdg-desktop-portal) and here is what I get as output:

jamie@localhost ~ $ dbus-run-session sway




*amdgpu: amdgpu_cs_ctx_create2 failed. (-13)00:00:00.025 [wlr]
[types/wlr_drm_lease_v1.c:715] No DRM backend supplied, failed to create
wlr_drm_lease_v1_manager2023-12-26 21:10:39 - [swaybg-1.2.0/main.c:582]
wl_display_roundtrip failed00:00:00.034 [wlr] [xwayland/sockets.c:63]
Failed to bind socket @/tmp/.X11-unix/X0: Address already in use2023-12-26
21:10:39 - [swaybg-1.2.0/main.c:289] Could not find config for output WL-1
((null))*
PipeWire already running, exiting.
(Use 'gentoo-pipewire-launcher restart' to restart PipeWire and
WirePlumber.)
dbus-daemon[4539]: [session uid=1000 pid=4539] Activating service
name='org.a11y.Bus' requested by ':1.2' (uid=1000 pid=4563 comm="waybar -b
bar-0")
dbus-daemon[4539]: [session uid=1000 pid=4539] Successfully activated
service 'org.a11y.Bus'
[2023-12-26 21:10:39.717] [info] Using configuration file
/home/jamie/.config/waybar/config
[2023-12-26 21:10:39.717] [info] Using CSS file
/home/jamie/.config/waybar/style.css
dbus-daemon[4539]: [session uid=1000 pid=4539] Activating service
name='org.freedesktop.portal.Desktop' requested by ':1.1' (uid=1000
pid=4563 comm="waybar -b bar-0")
dbus-daemon[4539]: [session uid=1000 pid=4539] Activating service
name='org.freedesktop.portal.Documents' requested by ':1.4' (uid=1000
pid=4583 comm="/usr/libexec/xdg-desktop-portal")
dbus-daemon[4539]: [session uid=1000 pid=4539] Activating service
name='org.freedesktop.impl.portal.PermissionStore' requested by ':1.5'
(uid=1000 pid=4589 comm="/usr/libexec/xdg-document-portal")
dbus-daemon[4539]: [session uid=1000 pid=4539] Successfully activated
service 'org.freedesktop.impl.portal.PermissionStore'
dbus-daemon[4539]: [session uid=1000 pid=4539] Successfully activated
service 'org.freedesktop.portal.Documents'
fusermount3: failed to access mountpoint /run/user/1000/doc: Permission
denied












*error: fuse init failed: Can't mount path
/run/user/1000/doc(/usr/libexec/xdg-desktop-portal:4583):
xdg-desktop-portal-WARNING **: 21:10:39.742: Failed to load RealtimeKit
property: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name
org.freedesktop.RealtimeKit1 was not provided by any .service
files(/usr/libexec/xdg-desktop-portal:4583): xdg-desktop-portal-WARNING **:
21:10:39.742: Failed to load RealtimeKit property:
GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name
org.freedesktop.RealtimeKit1 was not provided by any .service
files(/usr/libexec/xdg-desktop-portal:4583): xdg-desktop-portal-WARNING **:
21:10:39.742: Failed to load RealtimeKit property:
GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name
org.freedesktop.RealtimeKit1 was not provided by any .service
files(/usr/libexec/xdg-desktop-portal:4583): xdg-desktop-portal-WARNING **:
21:10:39.742: No skeleton to export(/usr/libexec/xdg-desktop-portal:4583):
xdg-desktop-portal-WARNING **: 21:10:39.742: Choosing wlr.portal for
org.freedesktop.impl.portal.ScreenCast via the deprecated UseIn
key(/usr/libexec/xdg-desktop-portal:4583): xdg-desktop-portal-WARNING **:
21:10:39.742: The preferred method to match portal implementations to
desktop environments is to use the portals.conf(5) configuration file*
dbus-daemon[4539]: [session uid=1000 pid=4539] Activating service
name='org.freedesktop.impl.portal.desktop.wlr' requested by ':1.4'
(uid=1000 pid=4583 comm="/usr/libexec/xdg-desktop-portal")
*2023/12/26 21:10:39 [ERROR] - config: no config file found*
dbus-daemon[4539]: [session uid=1000 pid=4539] Successfully activated
service 'org.freedesktop.impl.portal.desktop.wlr'
dbus-daemon[4539]: [session uid=1000 pid=4539] Successfully activated
service 'org.freedesktop.portal.Desktop'
dbus-daemon[4581]: Activating service name='org.a11y.atspi.Registry'
requested by ':1.0' (uid=1000 pid=4563 comm="waybar -b bar-0")
basic_string::_M_create
dbus-daemon[4581]: Successfully activated service 'org.a11y.atspi.Registry'
SpiRegistry daemon is running with well-known name - org.a11y.atspi.Registry
[2023-12-26 21:10:39.746] [warning] Waybar has been built without rfkill
support.
[2023-12-26 21:10:39.860] [info] Bar configured (width: 1920, height: 26)
for output: WL-1


On Tue, Nov 28, 2023 at 12:31?AM Arsen Arsenovi? <arsen@gentoo.org> wrote:

>
> Jamie Getty <jamiegetty1@gmail.com> writes:
>
> > I'm not sure what you mean by *wrap it in dbus-run-session*.
> > I use SDDM as my display manager and I start Sway from there.
> > My sway config also contains this line, as previously mentioned:
> >
> > *# Enable screen sharingexec --no-startup-id
> > dbus-update-activation-environment --all*
> >
> > However, I noticed that if I try running this line by itself in a
> terminal,
> > I get this output:
> >
> >
> > *jamie@localhost ~ $ exec --no-startup-id
> > dbus-update-activation-environment --allbash: exec: --: invalid
> optionexec:
> > usage: exec [-cl] [-a name] [command [argument ...]] [redirection ...]*
>
> Sway configs aren't shells scripts. In shell, you'd run
> 'dbus-update-activation-environment --all' alone. Does qdbus --session
> output any errors or just a bunch of names and numbers?
>
> SDDM should set up a D-Bus session bus, I believe.
>
> I'm quite sure that your D-Bus session bus is not working properly
> because of the error you initially posted.
>
> > On Sun, Nov 26, 2023 at 11:37?PM Arsen Arsenovi? <arsen@gentoo.org>
> wrote:
> >
> >> Hi Jamie,
> >>
> >> Jamie Getty <jamiegetty1@gmail.com> writes:
> >>
> >> > How do I ensure I have a dbus user session running? Those links just
> lead
> >> > to forum posts with varying issues and I'm not sure which to follow.
> >> > Here are the dbus-related process I have running:
> >>
> >> Make sure to wrap it in dbus-run-session. See
> >> https://wiki.gentoo.org/wiki/Sway#Starting_Sway
> >>
> >> Then add the
> >>
> >> exec --no-startup-id dbus-update-activation-environment --all
> >>
> >> ... line from the screen sharing troubleshooting entry.
> >> --
> >> Arsen Arsenovi?
> >>
>
>
> --
> Arsen Arsenovi?
>


--
Sincerely,
Jamie
Re: Cannot share screen via google meet with Firefox and Sway [ In reply to ]
I was able to make some progress after adding the *screenshare* flag
globally to my make.conf file and re-emerging @world.
Now, I can get screen sharing working when using tools like OBS, so the
core functionality works.
However, when I try using google meet to share my screen, it will last for
about 10 seconds before crashing.
The following message appears in dmesg during the crash:

*[ 371.878847] notification-da[4638]: segfault at 3 ip 0000000000000003 sp
00007ffeb603abc8 error 14 in notification-daemon[55fb9db8c000+7000] likely
on CPU 21 (core 5, socket 0)[ 371.878861] Code: Unable to access opcode
bytes at 0xffffffffffffffd9.*

On Tue, Dec 26, 2023 at 9:16?PM Jamie Getty <jamiegetty1@gmail.com> wrote:

> I have tried running *dbus-run-session sway* manually (sway is already
> running when I ran this but I wanted to see what errors I got regarding
> xdg-desktop-portal) and here is what I get as output:
>
> jamie@localhost ~ $ dbus-run-session sway
>
>
>
>
> *amdgpu: amdgpu_cs_ctx_create2 failed. (-13)00:00:00.025 [wlr]
> [types/wlr_drm_lease_v1.c:715] No DRM backend supplied, failed to create
> wlr_drm_lease_v1_manager2023-12-26 21:10:39 - [swaybg-1.2.0/main.c:582]
> wl_display_roundtrip failed00:00:00.034 [wlr] [xwayland/sockets.c:63]
> Failed to bind socket @/tmp/.X11-unix/X0: Address already in use2023-12-26
> 21:10:39 - [swaybg-1.2.0/main.c:289] Could not find config for output WL-1
> ((null))*
> PipeWire already running, exiting.
> (Use 'gentoo-pipewire-launcher restart' to restart PipeWire and
> WirePlumber.)
> dbus-daemon[4539]: [session uid=1000 pid=4539] Activating service
> name='org.a11y.Bus' requested by ':1.2' (uid=1000 pid=4563 comm="waybar -b
> bar-0")
> dbus-daemon[4539]: [session uid=1000 pid=4539] Successfully activated
> service 'org.a11y.Bus'
> [2023-12-26 21:10:39.717] [info] Using configuration file
> /home/jamie/.config/waybar/config
> [2023-12-26 21:10:39.717] [info] Using CSS file
> /home/jamie/.config/waybar/style.css
> dbus-daemon[4539]: [session uid=1000 pid=4539] Activating service
> name='org.freedesktop.portal.Desktop' requested by ':1.1' (uid=1000
> pid=4563 comm="waybar -b bar-0")
> dbus-daemon[4539]: [session uid=1000 pid=4539] Activating service
> name='org.freedesktop.portal.Documents' requested by ':1.4' (uid=1000
> pid=4583 comm="/usr/libexec/xdg-desktop-portal")
> dbus-daemon[4539]: [session uid=1000 pid=4539] Activating service
> name='org.freedesktop.impl.portal.PermissionStore' requested by ':1.5'
> (uid=1000 pid=4589 comm="/usr/libexec/xdg-document-portal")
> dbus-daemon[4539]: [session uid=1000 pid=4539] Successfully activated
> service 'org.freedesktop.impl.portal.PermissionStore'
> dbus-daemon[4539]: [session uid=1000 pid=4539] Successfully activated
> service 'org.freedesktop.portal.Documents'
> fusermount3: failed to access mountpoint /run/user/1000/doc: Permission
> denied
>
>
>
>
>
>
>
>
>
>
>
>
> *error: fuse init failed: Can't mount path
> /run/user/1000/doc(/usr/libexec/xdg-desktop-portal:4583):
> xdg-desktop-portal-WARNING **: 21:10:39.742: Failed to load RealtimeKit
> property: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name
> org.freedesktop.RealtimeKit1 was not provided by any .service
> files(/usr/libexec/xdg-desktop-portal:4583): xdg-desktop-portal-WARNING **:
> 21:10:39.742: Failed to load RealtimeKit property:
> GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name
> org.freedesktop.RealtimeKit1 was not provided by any .service
> files(/usr/libexec/xdg-desktop-portal:4583): xdg-desktop-portal-WARNING **:
> 21:10:39.742: Failed to load RealtimeKit property:
> GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name
> org.freedesktop.RealtimeKit1 was not provided by any .service
> files(/usr/libexec/xdg-desktop-portal:4583): xdg-desktop-portal-WARNING **:
> 21:10:39.742: No skeleton to export(/usr/libexec/xdg-desktop-portal:4583):
> xdg-desktop-portal-WARNING **: 21:10:39.742: Choosing wlr.portal for
> org.freedesktop.impl.portal.ScreenCast via the deprecated UseIn
> key(/usr/libexec/xdg-desktop-portal:4583): xdg-desktop-portal-WARNING **:
> 21:10:39.742: The preferred method to match portal implementations to
> desktop environments is to use the portals.conf(5) configuration file*
> dbus-daemon[4539]: [session uid=1000 pid=4539] Activating service
> name='org.freedesktop.impl.portal.desktop.wlr' requested by ':1.4'
> (uid=1000 pid=4583 comm="/usr/libexec/xdg-desktop-portal")
> *2023/12/26 21:10:39 [ERROR] - config: no config file found*
> dbus-daemon[4539]: [session uid=1000 pid=4539] Successfully activated
> service 'org.freedesktop.impl.portal.desktop.wlr'
> dbus-daemon[4539]: [session uid=1000 pid=4539] Successfully activated
> service 'org.freedesktop.portal.Desktop'
> dbus-daemon[4581]: Activating service name='org.a11y.atspi.Registry'
> requested by ':1.0' (uid=1000 pid=4563 comm="waybar -b bar-0")
> basic_string::_M_create
> dbus-daemon[4581]: Successfully activated service 'org.a11y.atspi.Registry'
> SpiRegistry daemon is running with well-known name -
> org.a11y.atspi.Registry
> [2023-12-26 21:10:39.746] [warning] Waybar has been built without rfkill
> support.
> [2023-12-26 21:10:39.860] [info] Bar configured (width: 1920, height: 26)
> for output: WL-1
>
>
> On Tue, Nov 28, 2023 at 12:31?AM Arsen Arsenovi? <arsen@gentoo.org> wrote:
>
>>
>> Jamie Getty <jamiegetty1@gmail.com> writes:
>>
>> > I'm not sure what you mean by *wrap it in dbus-run-session*.
>> > I use SDDM as my display manager and I start Sway from there.
>> > My sway config also contains this line, as previously mentioned:
>> >
>> > *# Enable screen sharingexec --no-startup-id
>> > dbus-update-activation-environment --all*
>> >
>> > However, I noticed that if I try running this line by itself in a
>> terminal,
>> > I get this output:
>> >
>> >
>> > *jamie@localhost ~ $ exec --no-startup-id
>> > dbus-update-activation-environment --allbash: exec: --: invalid
>> optionexec:
>> > usage: exec [-cl] [-a name] [command [argument ...]] [redirection ...]*
>>
>> Sway configs aren't shells scripts. In shell, you'd run
>> 'dbus-update-activation-environment --all' alone. Does qdbus --session
>> output any errors or just a bunch of names and numbers?
>>
>> SDDM should set up a D-Bus session bus, I believe.
>>
>> I'm quite sure that your D-Bus session bus is not working properly
>> because of the error you initially posted.
>>
>> > On Sun, Nov 26, 2023 at 11:37?PM Arsen Arsenovi? <arsen@gentoo.org>
>> wrote:
>> >
>> >> Hi Jamie,
>> >>
>> >> Jamie Getty <jamiegetty1@gmail.com> writes:
>> >>
>> >> > How do I ensure I have a dbus user session running? Those links just
>> lead
>> >> > to forum posts with varying issues and I'm not sure which to follow.
>> >> > Here are the dbus-related process I have running:
>> >>
>> >> Make sure to wrap it in dbus-run-session. See
>> >> https://wiki.gentoo.org/wiki/Sway#Starting_Sway
>> >>
>> >> Then add the
>> >>
>> >> exec --no-startup-id dbus-update-activation-environment --all
>> >>
>> >> ... line from the screen sharing troubleshooting entry.
>> >> --
>> >> Arsen Arsenovi?
>> >>
>>
>>
>> --
>> Arsen Arsenovi?
>>
>
>
> --
> Sincerely,
> Jamie
>


--
Sincerely,
Jamie
Re: Cannot share screen via google meet with Firefox and Sway [ In reply to ]
Never mind, once I replaced notification-daemon with mako, I had no more
issues with notifications causing crashes.
Everything seems to work now. I think the main thing I needed to do was add
the *screencast* USE flag globally.
Thank you for your patience.

On Wed, Dec 27, 2023 at 12:22?AM Jamie Getty <jamiegetty1@gmail.com> wrote:

> I was able to make some progress after adding the *screenshare* flag
> globally to my make.conf file and re-emerging @world.
> Now, I can get screen sharing working when using tools like OBS, so the
> core functionality works.
> However, when I try using google meet to share my screen, it will last for
> about 10 seconds before crashing.
> The following message appears in dmesg during the crash:
>
> *[ 371.878847] notification-da[4638]: segfault at 3 ip 0000000000000003
> sp 00007ffeb603abc8 error 14 in notification-daemon[55fb9db8c000+7000]
> likely on CPU 21 (core 5, socket 0)[ 371.878861] Code: Unable to access
> opcode bytes at 0xffffffffffffffd9.*
>
> On Tue, Dec 26, 2023 at 9:16?PM Jamie Getty <jamiegetty1@gmail.com> wrote:
>
>> I have tried running *dbus-run-session sway* manually (sway is already
>> running when I ran this but I wanted to see what errors I got regarding
>> xdg-desktop-portal) and here is what I get as output:
>>
>> jamie@localhost ~ $ dbus-run-session sway
>>
>>
>>
>>
>> *amdgpu: amdgpu_cs_ctx_create2 failed. (-13)00:00:00.025 [wlr]
>> [types/wlr_drm_lease_v1.c:715] No DRM backend supplied, failed to create
>> wlr_drm_lease_v1_manager2023-12-26 21:10:39 - [swaybg-1.2.0/main.c:582]
>> wl_display_roundtrip failed00:00:00.034 [wlr] [xwayland/sockets.c:63]
>> Failed to bind socket @/tmp/.X11-unix/X0: Address already in use2023-12-26
>> 21:10:39 - [swaybg-1.2.0/main.c:289] Could not find config for output WL-1
>> ((null))*
>> PipeWire already running, exiting.
>> (Use 'gentoo-pipewire-launcher restart' to restart PipeWire and
>> WirePlumber.)
>> dbus-daemon[4539]: [session uid=1000 pid=4539] Activating service
>> name='org.a11y.Bus' requested by ':1.2' (uid=1000 pid=4563 comm="waybar -b
>> bar-0")
>> dbus-daemon[4539]: [session uid=1000 pid=4539] Successfully activated
>> service 'org.a11y.Bus'
>> [2023-12-26 21:10:39.717] [info] Using configuration file
>> /home/jamie/.config/waybar/config
>> [2023-12-26 21:10:39.717] [info] Using CSS file
>> /home/jamie/.config/waybar/style.css
>> dbus-daemon[4539]: [session uid=1000 pid=4539] Activating service
>> name='org.freedesktop.portal.Desktop' requested by ':1.1' (uid=1000
>> pid=4563 comm="waybar -b bar-0")
>> dbus-daemon[4539]: [session uid=1000 pid=4539] Activating service
>> name='org.freedesktop.portal.Documents' requested by ':1.4' (uid=1000
>> pid=4583 comm="/usr/libexec/xdg-desktop-portal")
>> dbus-daemon[4539]: [session uid=1000 pid=4539] Activating service
>> name='org.freedesktop.impl.portal.PermissionStore' requested by ':1.5'
>> (uid=1000 pid=4589 comm="/usr/libexec/xdg-document-portal")
>> dbus-daemon[4539]: [session uid=1000 pid=4539] Successfully activated
>> service 'org.freedesktop.impl.portal.PermissionStore'
>> dbus-daemon[4539]: [session uid=1000 pid=4539] Successfully activated
>> service 'org.freedesktop.portal.Documents'
>> fusermount3: failed to access mountpoint /run/user/1000/doc: Permission
>> denied
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>> *error: fuse init failed: Can't mount path
>> /run/user/1000/doc(/usr/libexec/xdg-desktop-portal:4583):
>> xdg-desktop-portal-WARNING **: 21:10:39.742: Failed to load RealtimeKit
>> property: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name
>> org.freedesktop.RealtimeKit1 was not provided by any .service
>> files(/usr/libexec/xdg-desktop-portal:4583): xdg-desktop-portal-WARNING **:
>> 21:10:39.742: Failed to load RealtimeKit property:
>> GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name
>> org.freedesktop.RealtimeKit1 was not provided by any .service
>> files(/usr/libexec/xdg-desktop-portal:4583): xdg-desktop-portal-WARNING **:
>> 21:10:39.742: Failed to load RealtimeKit property:
>> GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name
>> org.freedesktop.RealtimeKit1 was not provided by any .service
>> files(/usr/libexec/xdg-desktop-portal:4583): xdg-desktop-portal-WARNING **:
>> 21:10:39.742: No skeleton to export(/usr/libexec/xdg-desktop-portal:4583):
>> xdg-desktop-portal-WARNING **: 21:10:39.742: Choosing wlr.portal for
>> org.freedesktop.impl.portal.ScreenCast via the deprecated UseIn
>> key(/usr/libexec/xdg-desktop-portal:4583): xdg-desktop-portal-WARNING **:
>> 21:10:39.742: The preferred method to match portal implementations to
>> desktop environments is to use the portals.conf(5) configuration file*
>> dbus-daemon[4539]: [session uid=1000 pid=4539] Activating service
>> name='org.freedesktop.impl.portal.desktop.wlr' requested by ':1.4'
>> (uid=1000 pid=4583 comm="/usr/libexec/xdg-desktop-portal")
>> *2023/12/26 21:10:39 [ERROR] - config: no config file found*
>> dbus-daemon[4539]: [session uid=1000 pid=4539] Successfully activated
>> service 'org.freedesktop.impl.portal.desktop.wlr'
>> dbus-daemon[4539]: [session uid=1000 pid=4539] Successfully activated
>> service 'org.freedesktop.portal.Desktop'
>> dbus-daemon[4581]: Activating service name='org.a11y.atspi.Registry'
>> requested by ':1.0' (uid=1000 pid=4563 comm="waybar -b bar-0")
>> basic_string::_M_create
>> dbus-daemon[4581]: Successfully activated service
>> 'org.a11y.atspi.Registry'
>> SpiRegistry daemon is running with well-known name -
>> org.a11y.atspi.Registry
>> [2023-12-26 21:10:39.746] [warning] Waybar has been built without rfkill
>> support.
>> [2023-12-26 21:10:39.860] [info] Bar configured (width: 1920, height: 26)
>> for output: WL-1
>>
>>
>> On Tue, Nov 28, 2023 at 12:31?AM Arsen Arsenovi? <arsen@gentoo.org>
>> wrote:
>>
>>>
>>> Jamie Getty <jamiegetty1@gmail.com> writes:
>>>
>>> > I'm not sure what you mean by *wrap it in dbus-run-session*.
>>> > I use SDDM as my display manager and I start Sway from there.
>>> > My sway config also contains this line, as previously mentioned:
>>> >
>>> > *# Enable screen sharingexec --no-startup-id
>>> > dbus-update-activation-environment --all*
>>> >
>>> > However, I noticed that if I try running this line by itself in a
>>> terminal,
>>> > I get this output:
>>> >
>>> >
>>> > *jamie@localhost ~ $ exec --no-startup-id
>>> > dbus-update-activation-environment --allbash: exec: --: invalid
>>> optionexec:
>>> > usage: exec [-cl] [-a name] [command [argument ...]] [redirection ...]*
>>>
>>> Sway configs aren't shells scripts. In shell, you'd run
>>> 'dbus-update-activation-environment --all' alone. Does qdbus --session
>>> output any errors or just a bunch of names and numbers?
>>>
>>> SDDM should set up a D-Bus session bus, I believe.
>>>
>>> I'm quite sure that your D-Bus session bus is not working properly
>>> because of the error you initially posted.
>>>
>>> > On Sun, Nov 26, 2023 at 11:37?PM Arsen Arsenovi? <arsen@gentoo.org>
>>> wrote:
>>> >
>>> >> Hi Jamie,
>>> >>
>>> >> Jamie Getty <jamiegetty1@gmail.com> writes:
>>> >>
>>> >> > How do I ensure I have a dbus user session running? Those links
>>> just lead
>>> >> > to forum posts with varying issues and I'm not sure which to follow.
>>> >> > Here are the dbus-related process I have running:
>>> >>
>>> >> Make sure to wrap it in dbus-run-session. See
>>> >> https://wiki.gentoo.org/wiki/Sway#Starting_Sway
>>> >>
>>> >> Then add the
>>> >>
>>> >> exec --no-startup-id dbus-update-activation-environment --all
>>> >>
>>> >> ... line from the screen sharing troubleshooting entry.
>>> >> --
>>> >> Arsen Arsenovi?
>>> >>
>>>
>>>
>>> --
>>> Arsen Arsenovi?
>>>
>>
>>
>> --
>> Sincerely,
>> Jamie
>>
>
>
> --
> Sincerely,
> Jamie
>


--
Sincerely,
Jamie