mattermost / desktop

Mattermost Desktop application for Windows, Mac and Linux
Apache License 2.0
2k stars 815 forks source link

[Bug]: No window controls #3102

Closed vitoyucepi closed 2 months ago

vitoyucepi commented 2 months ago

Checks before filing an issue

Mattermost Desktop Version

5.9.0-rc.1

Operating System

Debian 12 x64

Mattermost Server Version

N/A

Steps to reproduce

  1. Install fresh Debian 12. Other distributions should work out of the box, except ubuntu 24.04.
  2. Use a wayland or xorg session.
  3. Download the release artifact.
  4. Extract the archive.
  5. Run the mattermost-desktop file.

Expected behavior

The window control buttons should be visible.

Observed behavior

No window control buttons like minimize, maximize, close. Screenshot of the GNOME desktop with the Mattermost application

Log Output

[2024-07-21 09:12:56.980] [error] Logger Log level set to: info
[2024-07-21 09:12:57.192] [info]  [App.Config] config.autostart has been configured: true
[2024-07-21 09:12:57.247] [info]  [App.Initialize] Autoupgrade disabled: false
[2024-07-21 09:12:57.280] [info]  [ServerDropdownView] init
[2024-07-21 09:12:57.301] [warn]  [i18nManager] Failed to set new language en-US
[2024-07-21 09:12:57.302] [warn]  [i18nManager] Failed to set new language US
[2024-07-21 09:12:57.706] [info]  [ModalView] [welcomeScreen] preloading with /home/test/Downloads/mattermost-desktop-5.9.0-rc.1-linux-x64/resources/app.asar/internalAPI.js

Additional Information

The problem seems to be related to electron 30+. I've done a custom build with electron 29 and it works fine.

devinbinnie commented 2 months ago

It appears that Electron has given us a new feature, not told us about it and broken the old one :P (I should probably read the changelog more closely) This will mean that Linux will not need a window frame going forward, thanks for catching this :)

vitoyucepi commented 2 months ago

I tried to create an application with electron:31 and it has window borders.

devinbinnie commented 2 months ago

I tried to create an application with electron:31 and it has window borders.

It's likely there's something about our configuration that's causing it then.