ferdium-app icon indicating copy to clipboard operation
ferdium-app copied to clipboard

MS Teams Screen Sharing on Linux does not work

Open carlcamilleri opened this issue 7 months ago • 3 comments

Avoid duplicates

  • [x] I agree to follow the Code of Conduct that this project adheres to.
  • [x] I have searched the issues tracker for a bug report similar to mine, in vain

Ferdium Version

7.0.1

What Operating System are you using?

Ubuntu

Operating System Version

Ubuntu: 25.04 Gnome Version: 48 Windowing System: Wayland Kernel Version: Linux 6.14.0-15-generic

What arch are you using?

x64

Last Known Working Ferdium version

No response

Expected Behavior

In MS Teams, while connected to a meeting:

  1. Click on Share > Screen, Window or Tab
  2. Get the layer the choose the screen or window to share

Actual Behavior

In MS Teams, while connected to a meeting:

  1. Click on Share > Screen, Window or Tab
  2. Nothing happens

Steps to reproduce

In MS Teams, while connected to a meeting:

  1. Click on Share > Screen, Window or Tab

Debug link

No response

Screenshots

No response

Additional information

The issue happens even if starting Ferdium from the terminal with the command:

ferdium --ozone-platform=wayland  --enable-features=WebRTCPipeWireCapturer,WaylandWindowDecorations,UseOzonePlatform

The following is a log from the console after clicking on "Share > Screen, Window or Tab"

[82639:0516/153633.132891:ERROR:object_proxy.cc(576)] Failed to call method: org.freedesktop.DBus.Properties.Get: object_path= /org/freedesktop/UPower: org.freedesktop.DBus.Error.AccessDenied: An AppArmor policy prevents this sender from sending this message to this recipient; type="method_call", sender=":1.518" (uid=1000 pid=82639 comm="/snap/ferdium/518/ferdium --ozone-platform=wayland" label="snap.ferdium.ferdium (enforce)") interface="org.freedesktop.DBus.Properties" member="Get" error name="(unset)" requested_reply="0" destination="org.freedesktop.UPower" (uid=0 pid=3591 comm="/usr/libexec/upowerd" label="unconfined")
[82639:0516/153633.133060:ERROR:object_proxy.cc(576)] Failed to call method: org.freedesktop.UPower.GetDisplayDevice: object_path= /org/freedesktop/UPower: org.freedesktop.DBus.Error.AccessDenied: An AppArmor policy prevents this sender from sending this message to this recipient; type="method_call", sender=":1.518" (uid=1000 pid=82639 comm="/snap/ferdium/518/ferdium --ozone-platform=wayland" label="snap.ferdium.ferdium (enforce)") interface="org.freedesktop.UPower" member="GetDisplayDevice" error name="(unset)" requested_reply="0" destination="org.freedesktop.UPower" (uid=0 pid=3591 comm="/usr/libexec/upowerd" label="unconfined")
[82639:0516/153633.133208:ERROR:object_proxy.cc(576)] Failed to call method: org.freedesktop.UPower.EnumerateDevices: object_path= /org/freedesktop/UPower: org.freedesktop.DBus.Error.AccessDenied: An AppArmor policy prevents this sender from sending this message to this recipient; type="method_call", sender=":1.518" (uid=1000 pid=82639 comm="/snap/ferdium/518/ferdium --ozone-platform=wayland" label="snap.ferdium.ferdium (enforce)") interface="org.freedesktop.UPower" member="EnumerateDevices" error name="(unset)" requested_reply="0" destination="org.freedesktop.UPower" (uid=0 pid=3591 comm="/usr/libexec/upowerd" label="unconfined")
[82639:0516/153635.928533:ERROR:object_proxy.cc(576)] Failed to call method: org.gnome.SessionManager.Inhibit: object_path= /org/gnome/SessionManager: org.freedesktop.DBus.Error.AccessDenied: An AppArmor policy prevents this sender from sending this message to this recipient; type="method_call", sender=":1.1110" (uid=1000 pid=82639 comm="/snap/ferdium/518/ferdium --ozone-platform=wayland" label="snap.ferdium.ferdium (enforce)") interface="org.gnome.SessionManager" member="Inhibit" error name="(unset)" requested_reply="0" destination="org.gnome.SessionManager" (uid=1000 pid=5065 comm="/usr/libexec/gnome-session-binary --systemd-servic" label="unconfined")
[82639:0516/153635.928556:ERROR:power_save_blocker_linux.cc(342)] No response to Inhibit() request!
[82639:0516/153635.928709:ERROR:object_proxy.cc(576)] Failed to call method: org.freedesktop.ScreenSaver.Inhibit: object_path= /org/freedesktop/ScreenSaver: org.freedesktop.DBus.Error.AccessDenied: An AppArmor policy prevents this sender from sending this message to this recipient; type="method_call", sender=":1.1110" (uid=1000 pid=82639 comm="/snap/ferdium/518/ferdium --ozone-platform=wayland" label="snap.ferdium.ferdium (enforce)") interface="org.freedesktop.ScreenSaver" member="Inhibit" error name="(unset)" requested_reply="0" destination="org.freedesktop.ScreenSaver" (uid=1000 pid=5235 comm="/usr/libexec/gsd-screensaver-proxy" label="unconfined")
[82639:0516/153635.928718:ERROR:power_save_blocker_linux.cc(342)] No response to Inhibit() request!
[82639:0516/153640.186327:ERROR:object_proxy.cc(576)] Failed to call method: org.freedesktop.DBus.Properties.Get: object_path= /org/freedesktop/UPower: org.freedesktop.DBus.Error.AccessDenied: An AppArmor policy prevents this sender from sending this message to this recipient; type="method_call", sender=":1.519" (uid=1000 pid=82639 comm="/snap/ferdium/518/ferdium --ozone-platform=wayland" label="snap.ferdium.ferdium (enforce)") interface="org.freedesktop.DBus.Properties" member="Get" error name="(unset)" requested_reply="0" destination="org.freedesktop.UPower" (uid=0 pid=3591 comm="/usr/libexec/upowerd" label="unconfined")
[82639:0516/153640.186497:ERROR:object_proxy.cc(576)] Failed to call method: org.freedesktop.UPower.GetDisplayDevice: object_path= /org/freedesktop/UPower: org.freedesktop.DBus.Error.AccessDenied: An AppArmor policy prevents this sender from sending this message to this recipient; type="method_call", sender=":1.519" (uid=1000 pid=82639 comm="/snap/ferdium/518/ferdium --ozone-platform=wayland" label="snap.ferdium.ferdium (enforce)") interface="org.freedesktop.UPower" member="GetDisplayDevice" error name="(unset)" requested_reply="0" destination="org.freedesktop.UPower" (uid=0 pid=3591 comm="/usr/libexec/upowerd" label="unconfined")
[82639:0516/153640.186721:ERROR:object_proxy.cc(576)] Failed to call method: org.freedesktop.UPower.EnumerateDevices: object_path= /org/freedesktop/UPower: org.freedesktop.DBus.Error.AccessDenied: An AppArmor policy prevents this sender from sending this message to this recipient; type="method_call", sender=":1.519" (uid=1000 pid=82639 comm="/snap/ferdium/518/ferdium --ozone-platform=wayland" label="snap.ferdium.ferdium (enforce)") interface="org.freedesktop.UPower" member="EnumerateDevices" error name="(unset)" requested_reply="0" destination="org.freedesktop.UPower" (uid=0 pid=3591 comm="/usr/libexec/upowerd" label="unconfined")
[82639:0516/153653.787719:ERROR:object_proxy.cc(576)] Failed to call method: org.freedesktop.DBus.Properties.Get: object_path= /org/freedesktop/UPower: org.freedesktop.DBus.Error.AccessDenied: An AppArmor policy prevents this sender from sending this message to this recipient; type="method_call", sender=":1.520" (uid=1000 pid=82639 comm="/snap/ferdium/518/ferdium --ozone-platform=wayland" label="snap.ferdium.ferdium (enforce)") interface="org.freedesktop.DBus.Properties" member="Get" error name="(unset)" requested_reply="0" destination="org.freedesktop.UPower" (uid=0 pid=3591 comm="/usr/libexec/upowerd" label="unconfined")
[82639:0516/153653.787882:ERROR:object_proxy.cc(576)] Failed to call method: org.freedesktop.UPower.GetDisplayDevice: object_path= /org/freedesktop/UPower: org.freedesktop.DBus.Error.AccessDenied: An AppArmor policy prevents this sender from sending this message to this recipient; type="method_call", sender=":1.520" (uid=1000 pid=82639 comm="/snap/ferdium/518/ferdium --ozone-platform=wayland" label="snap.ferdium.ferdium (enforce)") interface="org.freedesktop.UPower" member="GetDisplayDevice" error name="(unset)" requested_reply="0" destination="org.freedesktop.UPower" (uid=0 pid=3591 comm="/usr/libexec/upowerd" label="unconfined")
[82639:0516/153653.788068:ERROR:object_proxy.cc(576)] Failed to call method: org.freedesktop.UPower.EnumerateDevices: object_path= /org/freedesktop/UPower: org.freedesktop.DBus.Error.AccessDenied: An AppArmor policy prevents this sender from sending this message to this recipient; type="method_call", sender=":1.520" (uid=1000 pid=82639 comm="/snap/ferdium/518/ferdium --ozone-platform=wayland" label="snap.ferdium.ferdium (enforce)") interface="org.freedesktop.UPower" member="EnumerateDevices" error name="(unset)" requested_reply="0" destination="org.freedesktop.UPower" (uid=0 pid=3591 comm="/usr/libexec/upowerd" label="unconfined")
[82639:0516/153715.813086:ERROR:object_proxy.cc(576)] Failed to call method: org.freedesktop.DBus.Properties.Get: object_path= /org/freedesktop/UPower: org.freedesktop.DBus.Error.AccessDenied: An AppArmor policy prevents this sender from sending this message to this recipient; type="method_call", sender=":1.521" (uid=1000 pid=82639 comm="/snap/ferdium/518/ferdium --ozone-platform=wayland" label="snap.ferdium.ferdium (enforce)") interface="org.freedesktop.DBus.Properties" member="Get" error name="(unset)" requested_reply="0" destination="org.freedesktop.UPower" (uid=0 pid=3591 comm="/usr/libexec/upowerd" label="unconfined")
[82639:0516/153715.813179:ERROR:object_proxy.cc(576)] Failed to call method: org.freedesktop.UPower.GetDisplayDevice: object_path= /org/freedesktop/UPower: org.freedesktop.DBus.Error.AccessDenied: An AppArmor policy prevents this sender from sending this message to this recipient; type="method_call", sender=":1.521" (uid=1000 pid=82639 comm="/snap/ferdium/518/ferdium --ozone-platform=wayland" label="snap.ferdium.ferdium (enforce)") interface="org.freedesktop.UPower" member="GetDisplayDevice" error name="(unset)" requested_reply="0" destination="org.freedesktop.UPower" (uid=0 pid=3591 comm="/usr/libexec/upowerd" label="unconfined")
[82639:0516/153715.813232:ERROR:object_proxy.cc(576)] Failed to call method: org.freedesktop.UPower.EnumerateDevices: object_path= /org/freedesktop/UPower: org.freedesktop.DBus.Error.AccessDenied: An AppArmor policy prevents this sender from sending this message to this recipient; type="method_call", sender=":1.521" (uid=1000 pid=82639 comm="/snap/ferdium/518/ferdium --ozone-platform=wayland" label="snap.ferdium.ferdium (enforce)") interface="org.freedesktop.UPower" member="EnumerateDevices" error name="(unset)" requested_reply="0" destination="org.freedesktop.UPower" (uid=0 pid=3591 comm="/usr/libexec/upowerd" label="unconfined")

carlcamilleri avatar May 16 '25 13:05 carlcamilleri

Hi, there have been a few problems with linux distros in the v34.x releases of electron which we used in 7.0.1. The last release of Ferdium that has just come out uses the v35.x releases. Could you please update and let me know afterwards if the problem is still there after?

Alphrag avatar May 25 '25 21:05 Alphrag

@Alphrag I have updated my local instance but still no joy I'm afraid. Here are the version details where I'm currently replicating:

Version: 7.1.1-nightly.1 Server: No Server Electron: 35.4.0 Chrome: 134.0.6998.205 Node.js: 22.15.0 Platform: Linux 6.14 Arch: x64 Build date: Mon May 26 2025 04:05:50 GMT+0200 (Central European Summer Time) Git SHA: 08bb8544 Git branch: nightly

carlcamilleri avatar May 29 '25 15:05 carlcamilleri

@Alphrag Same here with latest (?!) Nightly:

Version: 7.1.1-nightly.5 Server: Ferdium Server Electron: 37.2.6 Chrome: 138.0.7204.185 Node.js: 22.17.1 Platform: Linux 6.8 Arch: x64 Build date: Tue Aug 26 2025 04:00:24 GMT+0200 (Central European Summer Time) Git SHA: 38522b7a Git branch: nightly

danielkastner avatar Sep 03 '25 12:09 danielkastner

Using the DEB version. Nothing happens when trying to do screen sharing on GNOME Shell in Wayland.

Version: 7.1.1 Server: No Server Electron: 37.6.0 Chrome: 138.0.7204.251 Node.js: 22.19.0 Platform: Linux 6.17 Arch: x64 Build date: Tue Oct 07 2025 17:27:22 GMT-0400 (Eastern Daylight Time) Git SHA: 3a94fd40 Git branch: release

Looks like it's not able to interact with the portal

Checking for beta autoupdate feature for deb/rpm distributions
Found package-type: deb
[3815874:1125/091100.853558:ERROR:base/nix/mime_util_xdg.cc:137] Invalid mime.cache file does not contain null prior to ALIAS_LIST_OFFSET=44
[MobX] Since strict-mode is enabled, changing (observed) observable values without using an action is not allowed. Tried to modify: [email protected]
Ferdium Migration:  🧙‍  Running database migration wizard
info: serving app on http://localhost:46569
(node:3815874) [DEP0180] DeprecationWarning: fs.Stats constructor is deprecated.
(Use `ferdium --trace-deprecation ...` to show where the warning was created)
Ferdium Migration:  🔧  Nothing to migrate, already on the newest version
[3815874:1125/091102.045529:ERROR:crypto/nss_util.cc:344] After loading Root Certs, loaded==false: NSS error code: -8018
Checking for update
Update for version 7.1.1 is not available (latest version: 7.1.1, downgrade is disallowed).
[3815874:1125/091144.357209:ERROR:third_party/webrtc/modules/desktop_capture/linux/wayland/screen_capture_portal_interface.cc:78] Failed to request the session subscription.
[3815874:1125/091144.357235:ERROR:third_party/webrtc/modules/desktop_capture/linux/wayland/base_capturer_pipewire.cc:82] ScreenCastPortal failed: 3
Error occurred in handler for 'get-desktop-capturer-sources': Failed to get sources.

greatquux avatar Nov 25 '25 15:11 greatquux