This folder contains the configuration options available for the app.
The application uses yargs to allow command line arguments.
Here is the list of available arguments and its usage:
Option | Usage | Default Value |
---|---|---|
appActiveCheckInterval | A numeric value in seconds as poll interval to check if the system is active from being idle | 2 |
appIcon | Teams app icon to show in the tray | |
appIconType | Type of tray icon to be used default/light/dark | default |
appIdleTimeout | A numeric value in seconds as duration before app considers the system as idle | 300 |
appIdleTimeoutCheckInterval | A numeric value in seconds as poll interval to check if the appIdleTimeout is reached | 10 |
appLogLevels | Comma separated list of log levels (error,warn,info,debug) | error,warn |
appTitle | A text to be suffixed with page title | Microsoft Teams |
authServerWhitelist | set auth-server-whitelist value | * |
chromeUserAgent | user agent string for chrome | Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3831.6 Safari/537.36 |
customBGServiceBaseUrl | Base URL of the server which provides custom background images | http://localhost |
customBGServiceConfigFetchInterval | A numeric value in seconds as poll interval to download custom background service configuration. If 0, it will be downloaded only at application start | 0 |
customBGServiceIgnoreMSDefaults | A flag indicates whether to ignore Microsoft provided images or not | false |
customCACertsFingerprints | custom CA Certs Fingerprints to allow SSL unrecognized signer or self signed certificate (see below) | [] |
customCSSName | Custom CSS name for the packaged available css files. Currently those are: "compactDark", "compactLight", "tweaks", "condensedDark" and "condensedLight" | |
customCSSLocation | Location for custom CSS styles | |
customUserDir | Custom User Directory so that you can have multiple profiles | |
clearStorage | Whether to clear the storage before creating the window or not | false |
clientCertPath clientCertPassword | custom Client Certs for corporate authentication (certificate must be in pkcs12 format) | [] |
closeAppOnCross | Close the app when clicking the close (X) cross | false |
config | config file location | ~/.config/teams-for-linux/config.json |
defaultURLHandler | Default application to be used to open the HTTP URLs | |
disableAutogain | A flag indicates whether to disable mic auto gain or not | false |
disableGpu | A flag to disable GPU and hardware acceleration (can be useful if the window remains blank) | false |
disableMeetingNotifications | Whether to disable meeting notifications or not | false |
disableNotifications | A flag to disable all notifications | false |
disableNotificationSound | Disable chat/meeting start notification sound | false |
disableNotificationSoundIfNotAvailable | Disable chat/meeting start notification sound if status is not Available (e.g. busy, in a call) | true |
disableNotificationWindowFlash | A flag indicates whether to disable window flashing when there is a notification | false |
help | show the available commands | false |
onlineCheckMethod | Type of network test for checking online status, can be: https, dns, native, none | https |
partition | BrowserWindow webpreferences partition | persist:teams-4-linux |
proxyServer | Proxy Server with format address:port | None |
menubar | A value controls the menu bar behaviour (auto/visible/hidden) | auto |
minimized | Start the application minimized | false |
ntlmV2enabled | set enable-ntlm-v2 value | true |
screenLockInhibitionMethod | Screen lock inhibition method to be used (Electron/WakeLockSentinel) | Electron |
spellCheckerLanguages | Language codes to use with Electron's spell checker (experimental) | [] |
url | url to open | https://teams.microsoft.com/ |
version | show the version number | false |
webDebug | Start with the browser developer tools open | false |
incomingCallCommand | Command to execute on an incoming call |
As an example, to disable the persistence, you can run the following command:
teams-for-linux --partition nopersist
Alternatively, you can use a file called config.json
with the configuration options. This file needs to be located in ~/.config/teams-for-linux/config.json
.
For Snap installations, the file is located in ~/snap/teams-for-linux/current/.config/teams-for-linux/config.json
and for Flatpak it is located in ~/.var/app/com.github.IsmaelMartinez.teams_for_linux/config/teams-for-linux/config.json
.
yargs allows for extra modes of configuration. Refer to their documentation if you prefer to use a configuration file instead of arguments.
Example:
{
"closeAppOnCross": true
}
Information about how to get the custom CA Certs fingerprints is now available under the certificate README.md file
We added a feature to load custom background images during a video call. This is available from version 1.0.84
.
- Currently app does not feature adding or removing custom images. You have to rely on any locally/remotely hosted web servers to serve images.
- 3 new command-line parameters
customBGServiceBaseUrl
,customBGServiceIgnoreMSDefaults
andcustomBGServiceConfigFetchInterval
are introduced. See above for details. - Custom images are always loaded with
<customBGServiceBaseUrl>/<image-path>
. So, you have to make sure the web server is running and<customBGServiceBaseUrl>
responds to the request. - You can choose any web server of your choice but make sure
Access-Control-Allow-Origin
is set to*
in response headers from web server.
For apache2, /etc/apache2/apache2.conf
may need to have an entry like this.
<Directory /var/www/>
Header set Access-Control-Allow-Origin "*"
Options Indexes FollowSymLinks
AllowOverride None
Require all granted
</Directory>
- List of images are to be stored in
<customBGServiceBaseUrl>/config.json
. - It would look like this:
[
{
"filetype": "jpg",
"id": "Custom_bg01",
"name": "Custom bg",
"src": "/<path-to-image>",
"thumb_src": "/<path-to-thumb-image>"
}
]
As you can see from the above example, it's a JSON array so you can configure any number of images of your choice.
filetype
: Type of image (Ex: jpg)id
: Id of the image. Give a unique name without spaces.name
: Name of your image.src
: Path to the image to be loaded when selected from the preview. Provide a picture with resolution 1920x1080 (Based on Microsoft CDN) though any resolution would work. This is to avoid unnecessary traffic by loading large size images.thumb_src
: Path to the image to be shown on the preview screen. Provide a low resolution picture (280x158 based on Microsoft CDN) as it's shown on the preview page. The smaller the image the quicker the preview will be.
Image paths are relative to customBGServiceBaseUrl
. If your image is at https://example.com/images/sample.jpg
, then src
would be /images/sample.jpg
.