Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Install VSCodium and make host .application file #86

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

justinmichaud
Copy link

  • Work around lldb python issues
  • Install VSCodium by default
  • Add helpful clangd default settings
  • Make VSCode .application file by default

- Install VSCodium by default
- Add helpful clangd default settings
- Make VSCode .application file by default
Name=VSCode WKDev
Comment=Code Editing. Redefined.
GenericName=Text Editor
Exec=bash -c "source /home/${USER}/.bashrc; wkdev enter -I -e -- $CODE_EXEC"
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
Exec=bash -c "source /home/${USER}/.bashrc; wkdev enter -I -e -- $CODE_EXEC"
Exec=bash -c "source /home/${USER}/.bashrc; wkdev-enter --exec --no-interactive -- $CODE_EXEC --unity-launch %F"

code takes a list of files.

explict args are more readable.

Copy link
Member

Choose a reason for hiding this comment

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

This makes a strong assumption users configure bash, which just isn't true.

This needs to be changed to be an absolute path to wkdev-enter on the host. I'm not sure how to get that information off-hand.

Icon=vscode-wkdev
Type=Application
StartupNotify=false
StartupWMClass=VSCodium
Copy link
Member

Choose a reason for hiding this comment

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

Hardcoded to vscodium only.

}

install_icon() {
cp /usr/share/pixmaps/vscod*.png /host/${HOME}/.local/share/icons/vscode-wkdev.png
Copy link
Member

Choose a reason for hiding this comment

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

This should go in a size appropriate subdirectory, e.g. ~/.local/share/icons/hicolor/256x256/apps/

Categories=TextEditor;Development;IDE;
MimeType=text/plain;inode/directory;application/x-codium-workspace;
Keywords=vscodium;codium;vscode;

Copy link
Member

Choose a reason for hiding this comment

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

Just to match the normal desktop file:

[Desktop Action new-empty-window]
Name=New Empty Window
Exec=${SAME EXEC AS ABOVE MINUS UNITY} --new-window %F
Icon=vscode-wkdev

}

install_xdg() {
tee /host/${HOME}/.local/share/applications/codium.desktop << HERE
Copy link
Member

Choose a reason for hiding this comment

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

Hardcoded name referring to vscodium.

"editorWhitespace.background": "#FF0000"
},
"terminal.integrated.allowChords": false,
}
Copy link
Member

Choose a reason for hiding this comment

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

Some of these are pretty arbitrary. I like the clangd.arguments but maybe lets move this to a different PR to discuss.

@@ -239,6 +253,7 @@ TASKS=(
"try_setup_dockerenv_file"
"try_setup_permissions_jhbuild_directory"
"try_setup_permissions_rust_directory"
"try_fix_lldb_py"
Copy link
Member

Choose a reason for hiding this comment

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

Please move this to its own PR.

@@ -17,8 +17,10 @@ verify_executables_exist curl
argsparse_allow_no_argument true
argsparse_use_option "=yes" "Assume yes for all prompts."
argsparse_use_option "no-extensions" "Don't install extensions."
argsparse_use_option "proprietary" "Use proprietary VSCode."
Copy link
Member

Choose a reason for hiding this comment

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

I understand people have strong opinions on this but I would prefer the default being normal vscode.

I can accept vscodium as an opt-in option but the reality is it will be less tested.

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.

2 participants