Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mattermost desktop app creates .desktop file to launch Electron instead of Mattermost #131

Open
sparr opened this issue Oct 3, 2024 · 0 comments

Comments

@sparr
Copy link

sparr commented Oct 3, 2024

  • The target platform(s) the problem occurs on (Linux, Mac, Mac App Store, and or Windows): EndeavourOS (Arch Linux)
  • Node version (run node -v): v21.7.3
  • auto-launch version: 5.0.6
  • The options you're passing to auto-launch: { name: electron.app.name, isHidden: true }
  • Are you using NW.js or Electron? Electron
    • If so, which version? 31.2.1
    • If you're using Electron, are you using auto-launch from the main process or a renderer process? I'm not sure
  • Can you reproduce this with a simple Hello World example app? Not yet
  • If needs be, would you be able to provide us with a simple app (as simple as possible) which reproduces the problem? I can try.

I am running Mattermost Desktop. When I enable "Start app on login", it asks auto-launch to make that happen. The result is the creation of ~/.config/autostart/electron.desktop with the following contents:

[Desktop Entry]
Type=Application
Version=1.0
Name=electron
Comment=electronstartup script
Exec=/usr/lib/electron31/electron --hidden
StartupNotify=false
Terminal=false

I suspect that Mattermost is not initializing some configuration that auto-launch depends on to do the Electron-specific guesswork necessary here, but I can't figure out what.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant