mattermost / mattermost/desktop
[Bug]: Autostart starts electron on EndeavourOS Linux
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 2.3k
- Forks
- 980
- Avg merge
- 1d 5h
- Merged PRs (30d)
- 30
Description
Checks before filing an issue
- This issue doesn't reproduce on web browsers (such as in Chrome). If it does, issue reports go to the Mattermost Server repository.
- I have checked the issue tracker and have not found an issue that matches the one I'm filing.
- This issue is not a troubleshooting question. Troubleshooting questions go here: https://forum.mattermost.com/c/trouble-shoot/16.
- This issue is not a feature request. You can request features and make product suggestions here: https://mattermost.com/suggestions/.
- This issue reproduces on the most recent stable version, or the most recent prerelease version of the Mattermost Desktop App.
- I have read the contribution guidelines.
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
- Open Mattermost
- File > Settings
- 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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