Skip to content

Warn user at startup when another DataLab instance is already running #292

@PierreRaybaut

Description

@PierreRaybaut

Description

DataLab does not fully support running multiple instances simultaneously. Known side effects include:

  • Preferences in the .ini configuration file being overwritten by the last instance to close
  • XML-RPC auto-discovery only finding the most recently started instance
  • Potential Web API connection file conflicts

Rather than attempting full multi-instance support (which would require significant architectural changes), we should warn the user at startup when another instance is detected.

Proposed implementation

  • Use a PID-based lock file (datalab.lock in the config directory) to detect running instances
  • On startup, if another instance is detected, show a warning dialog with the option to continue or abort
  • Clean up the lock file on normal exit; handle stale lock files from crashes automatically

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions