Skip to content

[Bug] update notification noderestart restarts wrong runtime #4154

@sdetweil

Description

@sdetweil

Environment

MagicMirror² version:
Node version:
npm version:
Platform:

Which start option are you using?

node --run start:x11

Are you using PM2?

No

Module

updatenotification

Have you tried disabling other modules?

  • Yes
  • No

Have you searched if someone else has already reported the issue on the forum or in the issues?

  • Yes

What did you do?

Configuration
set updatenotification to restart mm
<!-- Paste relevant code here -->
updateAutorestart: true

Steps to reproduce the issue:

cause a change in some installed 3rd party module

What did you expect to happen?

MM would restart

What actually happened?

mm failed to start, unable to find WAYLAND_DISPLAY env variable.. as I am using x11

Additional comments

updatenotification uses

Spawn("node --run start"  <--- this uses wayland now

but this instance needs

Spawn("node --run start:x11"
or 
Spawn("node --run start:windows"

one could find the previous start command in process list

ps -ef | grep node | grep start
sam      4138959 2915099  0 16:37 pts/1    00:00:00 node --run start:x11

Participation

  • I am willing to submit a pull request for this change.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions