Skip to content

[Bug]: ~/ media links fail on Fedora Atomic homes under /var/home #15601

Description

@netherguy4

Before submitting

  • I searched existing issues and did not find a duplicate.
  • I included enough detail to reproduce or investigate the problem.

Area

apps/web

Steps to reproduce

  1. Run the desktop app on a system with home directory /var/home/<user> (observed on Fedora COSMIC Atomic). Make sure the project's recorded workspace path also starts with /var/home/<user>, e.g. /var/home/<user>/project.
  2. Have a readable, valid MP4 at $HOME/Downloads/repro.mp4, outside the project directory. The example filename and directory are placeholders; the observed failure used an existing MP4 in the user's Downloads directory.
  3. Have the assistant return this Markdown link in a project thread:
    [repro.mp4](~/Downloads/repro.mp4)
  4. Click the rendered video link.

Expected behavior

~/Downloads/repro.mp4 resolves to the environment's home directory, e.g. /var/home/<user>/Downloads/repro.mp4, and the media preview loads the existing file.

Actual behavior

The preview shows a Media unavailable toast with Media file was not found.

The original MP4 exists and is readable by the same user: a regular file, mode 0644, 1,477,238 bytes, with an MP4 ftyp header. Reading its bytes succeeded. No permission changes were needed.

Impact

Minor bug or occasional failure

Home-relative media links cannot be opened on this home-directory layout; an absolute link avoids the path-resolution problem.

Version or commit

Observed in desktop 0.0.45-nightly.20261002.2584.

The same unresolved-tilde code is still present in v0.0.46-nightly.20261004.2648 and main @ 5a96895a85b43c838da6c89cf21068b99c003d5a. Those newer versions were checked in source, not through a fresh UI reproduction.

Environment

Fedora Linux 44.20260929.0 (COSMIC Atomic), Linux desktop AppImage. Home directory: /var/home/<user>. The issue occurs when opening a local media link from the chat.

Logs or stack traces

No stack trace was captured. The on-screen error is:

Media unavailable
Media file was not found.

Screenshots, recordings, or supporting files

Source investigation:

The older closed issue #263 concerns entering a project path in Add Project; this report concerns media links in chat.

Workaround

Suggested workaround: use a full absolute Markdown destination, for example:

[repro.mp4](/var/home/<user>/Downloads/repro.mp4)

This bypasses home inference. The file's absolute path was verified readable; playback through the replacement link was not separately verified.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething is broken or behaving incorrectly.via-triageFiled through npx t3 triage

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions