Skip to content

vscodium: fix symbolic linking issue with executable#9302

Open
Tbusk wants to merge 1 commit into
getsolus:mainfrom
Tbusk:patch/vscodium
Open

vscodium: fix symbolic linking issue with executable#9302
Tbusk wants to merge 1 commit into
getsolus:mainfrom
Tbusk:patch/vscodium

Conversation

@Tbusk

@Tbusk Tbusk commented Jun 15, 2026

Copy link
Copy Markdown
Contributor

Summary

Currently, the symlink between the executable and the bin file to run it isn't working. It silently fails to create the symlink. Chatted in matrix and found a solution, which this implements. Also, this adjusted the value of mime type to match flatpak version just in case it causes an issue with some part of the app I did not test that expects it.

Test Plan

  • Cleared existing symlinks and installed vscodium files and reinstalled. Shows up in app menu and launches correctly. Files show up in correct location as well.

Checklist

  • Package was built and tested against unstable
  • This change could gainfully be listed in the weekly sync notes once merged
  • I agree to license this contribution and all my previous contributions under the licensing terms in LICENSE.md and have the power and authority to grant those licenses.

Comment thread packages/v/vscodium/package.yml Outdated
**Summary**

Currently, the symlink between the executable and the bin file to run it isn't working. It silently fails to create the symlink. This PR fixes the issue.
@Tbusk Tbusk requested a review from EbonJaeger June 16, 2026 00:47
%workdir%/src/stable/resources/linux/code.desktop

# replace executable and remaining icon placeholders
sed -i -e 's|@@EXEC@@|codium|g' -e 's|@@ICON@@|vscodium|g' %workdir%/src/stable/resources/linux/code.desktop

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could this last sed be avoided by doing the desktop-file-edit after building/installing?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

From what I can tell, upstream fills in the values only for like snaps and deb builds for linux here: https://github.com/microsoft/vscode/blob/main/build/gulpfile.vscode.linux.ts

So the replacement needs to be done manually. The reason I had to use sed was because desktop-file-edit only touches stuff in the [Desktop Entry] section, not the [Desktop Action ... ] section, which left icon and exec in that area untouched.

https://github.com/VSCodium/vscodium/blob/master/src/stable/resources/linux/code.desktop

I think a cleaner approach might be to create a patch or recreate the .desktop file and throw it in with the files.

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

Labels

None yet

Projects

Status: Triage

Development

Successfully merging this pull request may close these issues.

2 participants