question

amasover-0402 avatar image
17 Votes"
amasover-0402 asked ·

Please support native notifications

Edit: Looks like someone has created a new Uservoice issue around this.

Currently the Teams Linux preview uses a custom notification system. It appears to spawn a new window in which to draw notifications. This is probably not a big deal in some window managers, but in tiling window managers it makes Teams notifications completely unusable:

alt text


I'm using i3 as my window manager, and I have default behavior for new windows set to split vertically. And since the Teams notification window is a new window.....well, the result is pretty ugly.

For reference, here's what it looks like using the unofficial teams-for-linux client (which uses Chromium's native notifications, since that's what the Teams web client uses), and dunst to handle notifications:

alt text

For reference, here's output from "dbus-monitor path=/org/freedesktop/Notifications". This is what I'd really like to see the official Teams client implement.

 method call time=1576520890.220235 sender=:1.640 -> destination=:1.2 serial=28 path=/org/freedesktop/Notifications; interface=org.freedesktop.Notifications; member=Notify
    string "teams-for-linux"
    uint32 0
    string ""
    string "Travis"
    string "fsd"
    array [
       string "default"
       string "View"
    ]
    array [
       dict entry(
          string "desktop-entry"
          variant             string "teams-for-linux"
       )
       dict entry(
          string "image-data"
          variant             struct {
                int32 64
                int32 64
                int32 256
                boolean true
                int32 8
                int32 4
                array of bytes [
                   # ommitted b/c it's a really long array of bytes that represents the profile picture
                ]
             }
       )
    ]


office-teams-linux-itpro
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.

DSPatrick avatar image
0 Votes"
DSPatrick answered ·

I'd recommend posting this feedback over here on uservoice.

https://microsoftteams.uservoice.com/forums/555103-public/suggestions/16911565-linux-client


· 2 · 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.

On the Techcommunity announcement post, Christopher Scott from the Office team suggested that issues for the Linux client be posted on this Q & A site.

https://techcommunity.microsoft.com/t5/Microsoft-Teams-Blog/Microsoft-Teams-is-now-available-on-Linux/bc-p/1060946/highlight/true#M4439

1 Vote 1 · ·

Forums are for quick break fix QnA, not really for product suggestions or feedback. Your post here will eventually roll off into the nether. If you wanted product PMs to see it then better to post on uservoice.


0 Votes 0 · ·
chris-0199 avatar image
4 Votes"
chris-0199 answered ·

Had the same issue, you need to configure i3 to enable floating for the notifications

for_window [title="Microsoft Teams Notification" class="microsoft teams - preview"] floating enable

for_window [title="Microsoft Teams Notification" class="Microsoft Teams - Preview"] floating enable

I had to add the above two line to my i3 config. xprop will get you the needed info.

xprop | grep -i -e '^wm_name\|^wm_class'

WM_NAME(UTF8_STRING) = "Microsoft Teams Notification"

WM_CLASS(STRING) = "microsoft teams - preview", "Microsoft Teams - Preview"

· 2 · 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.

Thanks, that makes a huge difference.

And I realized there is a benefit to Teams' custom notifications implementation. You can click the message in the notification window to go directly to the conversation. I believe the freedesktop notification spec is for passive notifications only, meaning no way to handle input like that.

I think support for native notifications would still be valuable, since then you can make Teams notifications work like the rest of your system notifications (same location on screen, same size, same styling), rather than needing to set position on specifically the Teams floating notification window. An option to switch between Teams style and native notifications would be fantastic.

2 Votes 2 · ·

The notification spec is https://developer.gnome.org/notification-spec/

Yes, that’s on gnome.org, but it’s the spec used for libnotify and supported by other desktop environments. A notification may have “actions”, with a default action typically just being a click on the notification, but it’s possible for extra actions to be invoked by GUI elements in the notification (buttons). The support for actions depends on the notification server.

Perhaps the most useful overview, with sample code in various languages, is on the Arch Linux wiki:
https://wiki.archlinux.org/index.php/Desktop_notifications

1 Vote 1 · ·
Sarmad-3231 avatar image
6 Votes"
Sarmad-3231 answered ·

"This is probably not a big deal in some window managers"

Wrong. This is a big deal, period. There is a centralized notification system provided by the OS, why not just use it? We want all notifications from all apps in a central location, not keep jumping between apps to see if there is anything we need to pay attention to.

· 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.