FS#75165 - [mattermost-desktop] Autostart has no effect

Attached to Project: Community Packages
Opened by Gergely Mészáros (Maetveis) - Saturday, 25 June 2022, 12:08 GMT
Last edited by Toolybird (Toolybird) - Saturday, 20 May 2023, 00:58 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Caleb Maclennan (alerque)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

Enabling / disabling automatic start upon login has no effect, the .desktop file in $HOME/.config/autostart is not added / removed.

Additional info:

Package versions:
mattermost-desktop-5.1.0-1, electron-18.2.4-1

It seems like the build has development mode turned on most likely because it is using:
https://github.com/sindresorhus/electron-is-dev
which in turn uses: https://www.electronjs.org/docs/latest/api/app#appispackaged-readonly

If development mode is forced off via the environment variable ELECTRON_IS_DEV=0, then mattermost will create $HOME/.config/autostart/electron.desktop, which does not work.

$HOME/.config/Mattermost/logs/main.log:
[2022-06-25 13:36:28.991] [warn] In development mode, autostart config never effects
[2022-06-25 13:36:28.992] [info] Log level set to: info
[2022-06-25 13:36:29.001] [info] config.autostart has been configured: true
[2022-06-25 13:40:38.656] [warn] In development mode, autostart config never effects
[2022-06-25 13:40:38.656] [info] Log level set to: info
[2022-06-25 13:40:38.663] [info] config.autostart has been configured: false

In the aur package mattermost-desktop-bin autostart works without issues.

Steps to reproduce:

1. Open (three dots) / File / Settings
2. Watch log file tail -f $HOME/.config/Mattermost/logs/main.log
2. Toggle "Start app on login"
3. Observe the warning being printed as above, check that the autostart files have not been created / deleted

This task depends upon

Closed by  Toolybird (Toolybird)
Saturday, 20 May 2023, 00:58 GMT
Reason for closing:  No response
Comment by Gergely Mészáros (Maetveis) - Saturday, 25 June 2022, 12:10 GMT
Sorry I can't seem to be able to edit the title, but it should have been [mattermost-desktop] Autostart has no effect
Comment by Caleb Maclennan (alerque) - Monday, 22 August 2022, 11:28 GMT
This sounds like an upstream bug? Has it been reported there? Does it work for other builds, for example binary packages provided upstream?

Loading...