Default to standard code behaviour when outside a container#20
Default to standard code behaviour when outside a container#20crispyricepc wants to merge 1 commit intoowtaylor:mainfrom
Conversation
owtaylor
left a comment
There was a problem hiding this comment.
Generally this makes a lot of sense. Thanks!
The actual exec needs to happen later - after we've prompted the user to install com.visualstudio.code - I think that means that the code should be structured as:
if [ -f /run/.containerenv ] ; then
flatpak=....
container_name=...
else
container_name=""
fi
<prompt for install>
if [ "$container_name" = "" ] ; then
verbose "Not in a toolbox, running Visual Studio Code directly"
exec ...
fi
|
I belive the verification if the user is on the host or inside a container should happen before the install prompt. Since the installation is checked with After this verification is done, we can check for the install, and later check if we should execute the VSCode flatpak on the host simply with |
|
Is this MR still active? |
|
Lol I completely forgot about this. Feel free to close |
|
Haha, okay. I am not entirely sure if @owtaylor is still working on this repo though?... |
|
I didn't see this thread until it was too late and I also reinvented this wheel: https://github.com/xanathar/toolbox-vscode/tree/wip/xan/run-uncontainerized It's on top of the latest Let me know if you want me to proceed opening a PR. |
No description provided.