IsmaelMartinez / teams-for-linux

Unofficial Microsoft Teams for Linux client
GNU General Public License v3.0
2.8k stars 232 forks source link

Custom backgrounds are not working on Teams V2 (configJSON is not iterable) #1424

Open nfp0 opened 3 days ago

nfp0 commented 3 days ago

Describe the bug

Custom background is not working for me. It fails with the output shown below. I have tried deleting .config/teams-for-linux/ to start with a fresh environment, but it did not help.

To Reproduce Steps to reproduce the behavior:

  1. Configure backgrounds web server according to the README.
  2. Open Teams with the following arguments: teams-for-linux --isCustomBackgroundEnabled=true --customBGServiceBaseUrl=http://localhost:5317 --webDebug
  3. Custom backgrounds don't show up.

Expected behavior Custom backgrounds should show up.

Desktop (please complete the following information):

Debug

19:15:33.128 › Custom background service url is 'http://localhost:5317'
19:15:33.129 › processArgs: [
  '/opt/teams-for-linux/teams-for-linux',
  '--isCustomBackgroundEnabled=true',
  '--customBGServiceBaseUrl=http://localhost:5317'
  '--webDebug'
]
19:15:33.213 › Fetched custom background remote configuration but failed to save at '/home/myuser/.config/teams-for-linux/custom_bg_remote.json'. configJSON is not iterable

Additional context

My config.json file looks like this:

{
  "videoBackgroundImages": [
    {
      "filetype": "png",
      "id": "Some_id",
      "name": "Some background",
      "src": "/evergreen-assets/backgroundimages/some-bg.png",
      "thumb_src": "/evergreen-assets/backgroundimages/some-bg.png"
    }
  ]
}
nfp0 commented 3 days ago

Additionally, I am wondering: Is the /evergreen-assets/backgroundimages/ path really mandatory for V2?

IsmaelMartinez commented 3 days ago

Are you running a server as described in the docs? What happens if you run the test server we provide? Ta

On Thu, 26 Sept 2024, 19:33 nfp0, @.***> wrote:

Additionally, I am wondering: Is the /evergreen-assets/backgroundimages/ path really mandatory for V2?

— Reply to this email directly, view it on GitHub https://github.com/IsmaelMartinez/teams-for-linux/issues/1424#issuecomment-2377660702, or unsubscribe https://github.com/notifications/unsubscribe-auth/AADJHEB7IM7KYFXT3ZPVW3DZYRHRFAVCNFSM6AAAAABO5TJTOKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGNZXGY3DANZQGI . You are receiving this because you are subscribed to this thread.Message ID: @.***>