flathub / flathub/io.github.shiftey.Desktop

Open in Visual Studio Code” fails because /var/lib/flatpak/app/ is stripped from editor path

Open Beginner friendly
#353 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
33
Forks
9
PR merge metrics
No merged PRs in 30d

Description

Environment:
- SteamOS
- GitHub Desktop: io.github.shiftey.Desktop Flatpak, system install
- VS Code: com.visualstudio.code Flatpak, system install
- GitHub Desktop has default filesystem=host permissions

Reproduction from inside GitHub Desktop sandbox:

FAILS:
flatpak-spawn --host \
com.visualstudio.code/current/active/export/bin/com.visualstudio.code \
"$HOME"

Error:
Failed to execute child process
“com.visualstudio.code/current/active/export/bin/com.visualstudio.code”
(No such file or directory)

WORKS:
flatpak-spawn --host \
/var/lib/flatpak/app/com.visualstudio.code/current/active/export/bin/com.visualstudio.code \
"$HOME"

Cause appears to be formatPathForFlatpak() stripping
/var/lib/flatpak/app/ before spawnEditor() calls flatpak-spawn --host.

Contributor guide

No contributing guide indexed for this repository

Research direction

Search the Python code for formatPathForFlatpak() and spawnEditor(), then inspect how the VS Code Flatpak path is transformed before flatpak-spawn --host runs. Reproduce the failing and working commands from the issue on SteamOS with the listed Flatpak installations. Done means Open in Visual Studio Code uses the executable path that includes /var/lib/flatpak/app/.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
desktop
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
74/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.