mattermost / mattermost/desktop

[Bug]: Autostart starts electron on EndeavourOS Linux

Open
#3,158 3 comments 4 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Type/Bug
Dominant language
TypeScript
Stars
2.3k
Forks
980
Avg merge
1d 5h
Merged PRs (30d)
30

Description

Checks before filing an issue
Mattermost Desktop Version

Version 5.10.0-develop.1 commit: 139fc347

Operating System

EndeavourOS Linux current x64

Mattermost Server Version

Mattermost Version: 10.2.0

Steps to reproduce
  1. Open Mattermost
  2. File > Settings
  3. Start app on login
Expected behavior

~/.config/autostart/mattermost.desktop is created and filled with the necessary Exec line to launch mattermost

Observed behavior

~/.config/autostart/electron.desktop is created with Exec=/usr/lib/electron31/electron --hidden

Log Output
No relevant log output
Additional Information

There are apparently many instances of people encountering the behavior where Electron launches in dev mode and decides that app.name is Electron, which then seems to confuse auto-launch's efforts to figure out how to set up the autostart script.

https://github.com/electron-userland/electron-webpack/issues/239
https://github.com/electron-react-boilerplate/electron-react-boilerplate/issues/2197
https://github.com/quasarframework/quasar/discussions/11044
https://github.com/SimulatedGREG/electron-vue/issues/424

I've created https://github.com/Teamwork/node-auto-launch/issues/131 upstream but suspect this is going to be an issue between MM and Electron.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the setting on EndeavourOS and inspect how the desktop app invokes auto-launch when Start app on login is enabled. Compare the generated ~/.config/autostart/electron.desktop and its Exec line with the expected mattermost.desktop entry, then verify that the autostart file uses the Mattermost application name and launch command.

Written by the indexing model from the issue text.

Assessment

Tech stack
electron, typescript
Domain
desktop, operating-systems
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
52/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.