implement run command#76
Conversation
|
Thanks for the patch @tosmi (and @mildred too for the other implementation in #30) ! A However, I am worried about the toolbox encroaching too much on Flatpak territory. Both of them provide rootless unprivileged containers, and there's significant overlap, but ultimately the toolbox is aimed for hackers to set up a development environment while Flatpak is optimized for non-technical users to run graphical applications. Given that, This is not to say that we don't want to add a |
|
From |
|
This is one direction for https://discussion.fedoraproject.org/t/developing-applications-using-flatpak-packaged-editors-ides/269 right? The use case here is "run my editor from the same context with the other developer tools". |
debarshiray
left a comment
There was a problem hiding this comment.
I didn't get a chance to play with it in detail, but it looks sane after a quick glance.
We need to write a man page, though. It would be awesome if you could write one!
| echo " enter [--container <name>]" | ||
| echo " [--release <release>]" | ||
| echo " or: toolbox [-v | --verbose]" | ||
| echo " run [-c | --container <name>]" |
There was a problem hiding this comment.
Nitpick: I'd put it after rm to keep them sorted.
There was a problem hiding this comment.
no problem, will fix that.
it's certainly an approach that works if the IDE is easy to install in the toolbox. Unfortunately, getting Eclipse (big piles of Java libraries) or VisualStudio Code (electron, lots of nodejs) into RPM form is not easy, and Flatpaks are an attractive target for such applications. So we need to figure out "bridge to the toolbox" |
|
thanks for the review. i'll will come up with a manpage asap. maybe i should read up on flatpack and how stuff works there. toolbox and running everything in a dev container is just a very easy way to migrate my "old" workflow into a container based one. i'm completely aware that toolbox is more aimed at power users than non-technical users. but it's a great tool for me to get my toolchain running and event tinker around with it. wanna try unstable emacs? create a container, install it, use it via if toolbox is clearly labeled as a tool for "power" users, it hopefully won't get confused with flatpack. thanks |
|
so i've updated my branch:
thanks edit: fixed typos |
2250bbb to
7a70d93
Compare
|
rebased on current master, cleanup of history. thanks |
enter() now uses run() for running a shell inside the container
This makes 'toolbox enter' similar to 'toolbox run $SHELL'. The 'run' command is meant to spawn arbitrary binaries present inside the toolbox container. Therefore it doesn't make sense for it to fall back to /bin/bash, like it does for 'enter' if $SHELL is absent. It's expected that users might use 'run' to create ad-hoc *.desktop files. That's why it neither offers to create nor falls back to an existing container like 'enter' does, because such interactions can't happen when used in a *.desktop file. It's also a more advanced command that new users are less likely to be interested in. Hence, this shouldn't affect usability. Some changes by Debarshi Ray. https://github.com/debarshiray/toolbox/pull/76
|
I took the liberty to rebase against |
|
Sorry that it took so long to get it merged, and once again thanks for your contribution! |
|
Merged via #149, closing. |
|
thank you for taking the time merging this request. i'm happy that i can use the upstream version again. thanks |
this is my shot at implementing a
toolbox runcommand. it simply runs a command in the toolbox container given.the use case is that we do not have to enter the container before running various commands. i've various aliases defined using the run command:
currently the documentation is missing, i will update the pull request if there is a chance that this gets merged.
i'm not a shell programming expert, so please be patient and excuse any mistakes :-)
thanks for this great tool
toni
edit: fixed typo