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

Bug: Cursor doesn't inherit terminal environment variables on Linux unlike VSCode #2919

Open
happyme531 opened this issue Mar 25, 2025 · 0 comments

Comments

@happyme531
Copy link

happyme531 commented Mar 25, 2025

Description

When opening VSCode from a terminal on Linux, it inherits the environment variables from the parent terminal session. However, Cursor IDE does not inherit these environment variables when launched the same way, causing workflow issues and requiring additional configuration steps.

Steps to Reproduce

  1. Set custom environment variables in terminal (export CUSTOM_VAR=value)
  2. Open VSCode from that terminal (code .)
  3. Open Cursor from the same terminal (cursor . or Cursor-0.48.1-x86_64.AppImage .)

Image

  1. Check environment variables in both IDEs (via terminal panel or debug output)

Expected Behavior

Cursor should inherit environment variables from the parent terminal, the same way VSCode does.

Actual Behavior

Cursor doesn't inherit the environment variables from the terminal it was launched from, requiring workarounds like explicit environment setup tasks.

System Information

  • OS: Manjaro Linux
  • Cursor 0.48.1
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