Skip to content

[FIXED] Hardcoded user path in auto-load functionality #105

@Tsukieomie

Description

@Tsukieomie

Code Quality Issue: Hardcoded Path

Severity: HIGH → FIXED
Location: src/main/index.ts:631

Description

Project auto-load contained hardcoded path /Users/kenny/1code that only worked for specific user.

Status

RESOLVED - Changed to use AUTO_LOAD_PROJECT environment variable

Changes Made

  • Removed hardcoded path
  • Made auto-load conditional on AUTO_LOAD_PROJECT env var
  • Only runs in development mode (!app.isPackaged)
  • Updated .env and .env.example with documentation

Code Before

const projectPath = "/Users/kenny/1code"  // Hardcoded!

Code After

const autoLoadPath = process.env.AUTO_LOAD_PROJECT
if (autoLoadPath && !app.isPackaged) {
  // Auto-load logic...
}

This issue can be closed as resolved.

Labels: bug, fixed, configuration

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions