Created
August 11, 2023 11:42
-
-
Save yus-ham/3bf69b67794f1fe28af6b06dc36755b9 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env xdg-open | |
# file: ~/.local/share/applications/ide.desktop | |
[Desktop Entry] | |
Version=1.0 | |
Terminal=false | |
Type=Application | |
Name=VS Code URL Handler | |
Comment=Handle URL Scheme ide:// | |
Icon=vscode-handler | |
NoDisplay=true | |
Exec=/opt/bin/ide.js %u | |
MimeType=x-scheme-handler/ide |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/data/.app/bun/bin/bun | |
// file: /opt/bin/ide.js | |
const url = new URL(process.argv[2]||'') | |
//console.info({url}) | |
Bun.spawn([ | |
'/data/.app/codium175/usr/share/codium/bin/codium', | |
'--user-data-dir', | |
'/data/.var/vscode/data', | |
'--extensions-dir', | |
'/data/.var/vscode/extensions', | |
'--no-sandbox', | |
'--unity-launch', | |
'-n', | |
'-r', | |
'-g', | |
url.searchParams.get('url').slice(7) +':'+ url.searchParams.get('line') | |
]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment