Skip to content

[Bug]: Cannot open window if "Launch minimized" #152

@aleasto

Description

@aleasto

What happened?

Since upgrading to version 6.0.0 (rev 814) I have been unable to launch the Mattermost window from the tray icon.

If I rm -rf ~/snap/mattermost-desktop/current/.config/Mattermost/ to delete my settings then the window launches correctly.

Enabling File > Settings > Show icon in the notification area and Launch minimized and restarting the application the bug presents again.

Likewise, enabling File > Settings > Leave app running in notification area when application window is closed doesn't actually let me re-open the Mattermost window from the system tray.

This happens both with --ozone-platform=wayland and --ozone-platform=x11.

I don't see any relevant log so this may well be an upstream bug.

What should have happened?

Clicking on the Mattermost icon in the system tray, then $server_name, should open a Mattermost window to chat in the chosen server.

Likewise, clicking on the Mattermost icon in the system tray, then Settings..., should open a Mattermost window for settings.

Output of snap info $snap_name

name:      mattermost-desktop
summary:   A secure, flexible platform build for the new era of collaboration
publisher: Snapcrafters✪
store-url: https://snapcraft.io/mattermost-desktop
contact:   https://github.com/snapcrafters/mattermost-desktop/issues
license:   MIT
description: |
  Mattermost is secure workplace messaging from behind your firewall.
  
  - Discuss topics in private groups, one-to-one or team-wide
  - Easily share and view image files
  - Connect in-house systems with webhooks and Slack-compatible integrations
  
  For technical and operations teams who execute high-stakes, collaborative
  workflows,
  Mattermost provides integrated team messaging, audio and screen share, workflow
  automation
  and project management. Governments, banks and tech giants use our secure
  collaboration platform
  to reduce risk and error rates while accelerating technical productivity.
  
  To use this app, you need a URL for a Mattermost server.
  
  This snap is maintained by the Snapcrafters community, and is not necessarily
  endorsed or
  officially maintained by the upstream developers.
commands:
  - mattermost-desktop
snap-id:      ed0pxJoDHrgmAWHH7baX5nryAHy1UNj0
tracking:     latest/stable
refresh-date: yesterday at 17:30 CET
channels:
  latest/stable:    6.0.0 2025-11-14 (814) 217MB -
  latest/candidate: 6.0.0 2025-11-14 (814) 217MB -
  latest/beta:      ↑                            
  latest/edge:      ↑                            
installed:          6.0.0            (814) 217MB -

Output of snap connections $snap_name

Interface               Plug                                       Slot                             Notes
audio-playback          mattermost-desktop:audio-playback          :audio-playback                  -
audio-record            mattermost-desktop:audio-record            -                                -
camera                  mattermost-desktop:camera                  -                                -
content[gnome-46-2404]  mattermost-desktop:gnome-46-2404           gnome-46-2404:gnome-46-2404      -
content[gpu-2404]       mattermost-desktop:gpu-2404                mesa-2404:gpu-2404               -
content[gtk-3-themes]   mattermost-desktop:gtk-3-themes            gtk-common-themes:gtk-3-themes   -
content[gtk-3-themes]   mattermost-desktop:gtk-3-themes            gtk-theme-adw-gtk3:gtk-3-themes  -
content[icon-themes]    mattermost-desktop:icon-themes             gtk-common-themes:icon-themes    -
content[icon-themes]    mattermost-desktop:icon-themes             icon-theme-breeze:icon-themes    -
content[sound-themes]   mattermost-desktop:sound-themes            gtk-common-themes:sound-themes   -
desktop                 mattermost-desktop:desktop                 :desktop                         -
desktop-legacy          mattermost-desktop:desktop-legacy          :desktop-legacy                  -
gsettings               mattermost-desktop:gsettings               :gsettings                       -
home                    mattermost-desktop:home                    :home                            -
login-session-observe   mattermost-desktop:login-session-observe   -                                -
network                 mattermost-desktop:network                 :network                         -
network-bind            mattermost-desktop:network-bind            :network-bind                    -
opengl                  mattermost-desktop:opengl                  :opengl                          -
pulseaudio              mattermost-desktop:pulseaudio              :pulseaudio                      -
removable-media         mattermost-desktop:removable-media         -                                -
screen-inhibit-control  mattermost-desktop:screen-inhibit-control  :screen-inhibit-control          -
shared-memory           mattermost-desktop:shmem                   :shared-memory                   -
unity7                  mattermost-desktop:unity7                  :unity7                          -
wayland                 mattermost-desktop:wayland                 :wayland                         -
x11                     mattermost-desktop:x11                     :x11                             -

Output of snap version

snap          2.72+ubuntu25.10.2
snapd         2.72+ubuntu25.10.2
series        16
ubuntu        25.10
kernel        6.17.0-6-generic
architecture  amd64

Relevant log output

None

Teminal output of app

/usr/share/libdrm/amdgpu.ids: No such file or directory
/usr/share/libdrm/amdgpu.ids: No such file or directory
10:37:27.522 › Logger Log level set to: { level: 'info' }
[macos-notification-state] failed to load 'notificationstate' addon Error: Module did not self-register: '/snap/mattermost-desktop/814/opt/Mattermost/resources/app.asar.unpacked/node_modules/macos-notification-state/build/Release/notificationstate.node'.
    at process.func [as dlopen] (node:electron/js2c/node_init:2:2617)
    at Module._extensions..node (node:internal/modules/cjs/loader:1874:18)
    at Object.func [as .node] (node:electron/js2c/node_init:2:2844)
    at Module.load (node:internal/modules/cjs/loader:1448:32)
    at Module._load (node:internal/modules/cjs/loader:1270:12)
    at c._load (node:electron/js2c/node_init:2:17993)
    at TracingChannel.traceSync (node:diagnostics_channel:322:14)
    at wrapModuleLoad (node:internal/modules/cjs/loader:244:24)
    at Module.require (node:internal/modules/cjs/loader:1470:12)
    at require (node:internal/modules/helpers:147:16) {
  code: 'ERR_DLOPEN_FAILED'
}
Checking for beta autoupdate feature for deb/rpm distributions
Found package-type: deb
10:37:27.725 › [App.Initialize] Current working directory is /home/aleasto, changing into /snap/mattermost-desktop/814/opt/Mattermost
Error org.freedesktop.DBus.Error.Failed: cannot set "default-url-scheme-handler" subproperty "mattermost" setting to invalid value "Mattermost.Desktop"
/usr/share/libdrm/amdgpu.ids: No such file or directory
Gtk-Message: 10:37:27.803: Not loading module "atk-bridge": The functionality is provided by GTK natively. Please try to not load it.
[2300061:1118/103727.973030:ERROR:content/browser/zygote_host/zygote_host_impl_linux.cc:283] Failed to adjust OOM score of renderer with pid 2300209: Permission denied (13)
10:37:27.972 › [App.Config] config.autostart has been configured: { autostart: true }
[2300061:1118/103727.989926:ERROR:dbus/object_proxy.cc:573] Failed to call method: org.freedesktop.Secret.Service.ReadAlias: object_path= /org/freedesktop/secrets: org.freedesktop.DBus.Error.AccessDenied: An AppArmor policy prevents this sender from sending this message to this recipient; type="method_call", sender=":1.3255" (uid=1000 pid=2300061 comm="/snap/mattermost-desktop/814/opt/Mattermost/matter" label="snap.mattermost-desktop.mattermost-desktop (enforce)") interface="org.freedesktop.Secret.Service" member="ReadAlias" error name="(unset)" requested_reply="0" destination="org.freedesktop.secrets" (uid=1000 pid=2185393 comm="/usr/bin/gnome-keyring-daemon --foreground --compo" label="unconfined")
10:37:27.995 › [SecureStorage] Secure storage is not available on this system. Secrets will be stored in plain text. Consider installing keyring services for better security.
10:37:27.996 › [SecureStorage] Secure storage initialized - encryption unavailable
10:37:28.004 › [SecureStorage] Initialized secure storage cache
[2300061:1118/103728.039599:ERROR:content/browser/zygote_host/zygote_host_impl_linux.cc:283] Failed to adjust OOM score of renderer with pid 2300246: Permission denied (13)
/usr/share/libdrm/amdgpu.ids: No such file or directory
[2300061:1118/103728.044179:ERROR:content/browser/zygote_host/zygote_host_impl_linux.cc:283] Failed to adjust OOM score of renderer with pid 2300250: Permission denied (13)
10:37:28.046 › [ServerDropdownView] init
[2300061:1118/103728.047369:ERROR:content/browser/zygote_host/zygote_host_impl_linux.cc:283] Failed to adjust OOM score of renderer with pid 2300253: Permission denied (13)
[2300061:1118/103728.051970:ERROR:content/browser/zygote_host/zygote_host_impl_linux.cc:283] Failed to adjust OOM score of renderer with pid 2300259: Permission denied (13)
[2300061:1118/103728.058584:ERROR:content/browser/zygote_host/zygote_host_impl_linux.cc:283] Failed to adjust OOM score of renderer with pid 2300270: Permission denied (13)
/usr/share/libdrm/amdgpu.ids: No such file or directory
[2300061:1118/103728.064944:ERROR:content/browser/zygote_host/zygote_host_impl_linux.cc:283] Failed to adjust OOM score of renderer with pid 2300280: Permission denied (13)
[2300061:1118/103728.074588:ERROR:content/browser/zygote_host/zygote_host_impl_linux.cc:283] Failed to adjust OOM score of renderer with pid 2300302: Permission denied (13)
10:37:28.083 › [App.Initialize] Autoupgrade disabled: false
10:37:28.138 › [i18nManager] Failed to set new language { locale: 'en-US' }
10:37:28.139 › [i18nManager] Failed to set new language { locale: 'GB' }
[2300061:1118/103728.145992:ERROR:dbus/object_proxy.cc:573] Failed to call method: org.freedesktop.login1.Manager.Inhibit: object_path= /org/freedesktop/login1: org.freedesktop.DBus.Error.AccessDenied: An AppArmor policy prevents this sender from sending this message to this recipient; type="method_call", sender=":1.7827" (uid=1000 pid=2300061 comm="/snap/mattermost-desktop/814/opt/Mattermost/matter" label="snap.mattermost-desktop.mattermost-desktop (enforce)") interface="org.freedesktop.login1.Manager" member="Inhibit" error name="(unset)" requested_reply="0" destination="org.freedesktop.login1" (uid=0 pid=2213 comm="/usr/lib/systemd/systemd-logind" label="unconfined")
[2300061:1118/103729.139737:ERROR:dbus/object_proxy.cc:573] Failed to call method: org.gnome.Mutter.IdleMonitor.AddIdleWatch: object_path= /org/gnome/Mutter/IdleMonitor/Core: org.freedesktop.DBus.Error.AccessDenied: An AppArmor policy prevents this sender from sending this message to this recipient; type="method_call", sender=":1.3260" (uid=1000 pid=2300061 comm="/snap/mattermost-desktop/814/opt/Mattermost/matter" label="snap.mattermost-desktop.mattermost-desktop (enforce)") interface="org.gnome.Mutter.IdleMonitor" member="AddIdleWatch" error name="(unset)" requested_reply="0" destination="org.gnome.Mutter.IdleMonitor" (uid=1000 pid=2185465 comm="/usr/bin/gnome-shell" label="unconfined")

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions