question

VilleLiski-4094 avatar image
0 Votes"
VilleLiski-4094 asked ·

Teams autostart not working on Fedora / Gnome3

Teams generates it's own ~/.config/autostart/teams.desktop file which is broken in many ways.

State after initial install before lauching Teams for the first time:

/usr/share/applications/teams.desktop

 [Desktop Entry]
 Version=1.0
 Type=Application
 Name=Microsoft Teams - Preview
 Comment=Microsoft Teams for Linux is your chat-centered workspace in Office 365.
 Exec=/usr/bin/teams %U
 Icon=teams
 Terminal=false
 StartupNotify=true
 StartupWMClass=Microsoft Teams - Preview
 Categories=AudioVideo;Network;
 MimeType=x-scheme-handler/teams;
 X-KDE-Protocols=teams


~/.config/autostart/teams.desktop

 N/A

After launching Teams for the first time: ~/.config/autostart/teams.desktop is generateed as a file with mode 644, e.g. not executable and not working as an autostart item. And Exec line reveals another issue why it would not work: /usr/share/teams/electron: No such file or directory

~/.config/autostart/teams.desktop

 [Desktop Entry]
 Version=1.0
 Type=Application
 Encoding=UTF-8
 Name=Microsoft Teams - Preview
 Exec=/usr/share/teams/electron %U
 Icon=teams
 Terminal=false
 StartupNotify=false
 Categories=Network;Application;
 MimeType=x-scheme-handler/teams;
 X-GNOME-Autostart-enabled=true
 X-KDE-Protocols=teams


How to temporarily fix:

 cd ~/.config/autostart
 rm teams.desktop
 ln -s /usr/share/applications/teams.desktop teams.desktop

I'm not entirely sure if ~/.config/autostart/.desktop -entries are supposed to be symlinks to /usr/share/applications/.desktop -files, but that seems to work and yields 50% less files and only one file to update in case something has to be changed.

teams-linux
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

SharonZhao-9394 avatar image
0 Votes"
SharonZhao-9394 answered ·

You can refer to the document: https://docs.microsoft.com/en-us/microsoftteams/known-issues#linux It mentions that this is a known issue. Engineer team is working on the fix. I recommend you continuously pay attention to the follow-up release.

· 3 · Share
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

I could not find a verification for that that. Or any plans what fixes will be included in the next release.

1 Vote 1 · ·

Known issue since 12/05/19 (discovery date). I don't read as well nothing about fixing date/version.

I have the issue with Ubuntu 18.04 that the automatic start is not working because the command "/usr/share/teams/electron %U" looks wrong.

What is the correct command (from perspective of linux experts)? (to enter it manually in start programs)

I'm more a linux newbie and right now I use "/usr/share/teams/teams" which seems to have a better result.

0 Votes 0 · ·

If the binary is installed in "/usr/share/teams/teams" path then that works for you. For RHEL derived distros it's different. While waiting for the fix you can use that fix in your ~/.config/autostart/teams.desktop -file.

0 Votes 0 · ·
SharonZhao-9394 avatar image
0 Votes"
SharonZhao-9394 answered ·

I test it and the result is same. In my research, you could try to add Microsoft Teams to the auto start programs. For more details, you can refer to the link: https://www.cyberciti.biz/faq/how-to-list-startup-services-at-boot-time-in-fedora-linux/

· 1 · Share
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Your link is for systemd which is not used for managing applications which rely on desktop environment. Please see the ~/.config/autostart/ directory to see which applications are starting when user logs in to Gnome3.

0 Votes 0 · ·
RudolfTomori-MSFT avatar image
0 Votes"
RudolfTomori-MSFT answered ·

We have published teams-insiders package version 1.3.00.958 that fixes the autostart issues. We keep the file mode to 644 though, as it does not need executable bit for autostart. The executable bit is used for desktop files that serve as launchers that user can double click on your desktop for example. The autostart specification does not mention it.

· Share
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.