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