Skip to content

vscode-weston-launcher: appends a Weston panel entry for VSCode#5

Merged
EmbeddedAndroid merged 1 commit into
mainfrom
weston-launcher
May 14, 2026
Merged

vscode-weston-launcher: appends a Weston panel entry for VSCode#5
EmbeddedAndroid merged 1 commit into
mainfrom
weston-launcher

Conversation

@EmbeddedAndroid

Copy link
Copy Markdown
Owner

Optional companion package for users running a Weston desktop on their target. Pull in via IMAGE_INSTALL alongside vscode and the VSCode icon shows up on the Weston panel.

How it works:

  • RDEPENDS on vscode + weston-init; doesn't pull anything Weston-related into non-Weston images.
  • do_install drops a launcher fragment at /usr/share/vscode-weston-launcher/launcher.ini delimited by # meta-vscode-launcher-begin / -end sentinel comments.
  • pkg_postinst appends the fragment to /etc/xdg/weston/weston.ini if the file exists and the sentinel isn't already present.
  • pkg_prerm strips the sentinel-delimited block back out on package removal so weston.ini round-trips cleanly.

Launcher itself:

  • icon: /usr/share/vscode/resources/app/resources/linux/code.png (the 1024x1024 PNG VSCode ships in its tarball; Weston scales it to panel size).
  • path: /usr/share/vscode/bin/code (the entry-point wrapper VSCode ships).
  • displayname: Visual Studio Code.

Verified builds clean on scarthgap.

Optional companion package. RDEPENDS on vscode + weston-init.
Postinst appends a [launcher] block to /etc/xdg/weston/weston.ini
between meta-vscode-launcher-begin / -end sentinels; prerm strips
the block back out cleanly on package removal.

The launcher icon is the canonical /usr/share/vscode/resources/app/
resources/linux/code.png (1024x1024) which Weston scales down to
panel size; binary entry point is /usr/share/vscode/bin/code,
matching where the vscode recipe installs everything.

Pull in via IMAGE_INSTALL when the image ships a Weston desktop and
should expose VSCode as a one-click launch. No-op on non-Weston
images (RDEPENDS won't pull weston-init in, postinst silently
skips when /etc/xdg/weston/weston.ini doesn't exist).
@EmbeddedAndroid EmbeddedAndroid merged commit 24ee97c into main May 14, 2026
22 checks passed
@EmbeddedAndroid EmbeddedAndroid deleted the weston-launcher branch May 14, 2026 22:25
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

Successfully merging this pull request may close these issues.

1 participant