Skip to content

File explorer does not remember last opened directory on Linux (Fedora) #3256

@ryga-test

Description

@ryga-test

Description

The file explorer widget does not remember the last opened directory on Linux Fedora. When navigating into a subdirectory and then closing/reopening the file explorer, it resets to the default/home directory instead of restoring the previously browsed location.

Steps to Reproduce

  1. Open the file explorer widget in Waveterm
  2. Navigate to a subdirectory (e.g., /home/user/Documents/project/src)
  3. Close the file explorer or switch away
  4. Reopen the file explorer / navigate back to it
  5. Observe that it starts at the home directory instead of the last location

Expected Behavior

The file explorer should persist and restore the last opened directory across sessions/navigation.

Actual Behavior

File explorer always resets to the home directory (or root of the workspace).

Environment

  • OS: Fedora Linux
  • Waveterm version: (please fill in: waveterm --version)
  • Desktop Environment: KDE

Additional Context

This may be a Linux-specific issue with the directory persistence mechanism, or a general cross-platform issue. Other file managers (VSCode, etc.) typically remember the last browsed directory. Not sure if this works correctly on macOS or Windows.

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