-
Notifications
You must be signed in to change notification settings - Fork 221
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
Automatically add .desktop files in toolbox to the host #1018
Comments
I've tried to implement this feature. It is not terribly difficult but I think it requires that we keep a record exported desktop files and their respective toolboxes. We need to be able to remove the exported applications when we do My idea is what we essentially follow the approach taken by distrobox. I propose the following CLI # export firefox from "mytoolbox"
toolbox export --container mytoolbox --app /usr/share/application/firefox.desktop
# export ripgrep from "mytoolbox"
toolbox export --container mytoolbox --bin /usr/bin/rg
# export nginx from "mytoolbox"
toolbox export --container mytoolbox --service nginx
# remove ripgrep import
toolbox export --clean rg
# removing the toolbox cleans up all the imported applications and binaries
toolbox rm mytoolbox to enable this we should keep a database mapping the toolbox containers to the exported applications, I suggest the following scheme (I was planning on keeping this on a JSON file but it doesn't have to be). {
"toolboxes": [
{
"container": "mytoolbox",
"exported": {
"bin": [
{ "containerPath": "/usr/share/applications/firefox.desktop", "hostPath": "/home/akdev/.local/share/applications/firefox.desktop" }
],
"app": [
{ "containerPath": "/usr/bin/rg", "hostPath": "/home/akdev/.local/bin/rg" }
],
"service": [
{ "containerPath": "/usr/lib/systemd/system/nginx.service", "hostPath": "/home/akdev/.local/systemd/nginx.service" }
]
}
}
]
} in this data structure we keep track of the applications we have exported per container so we can quickly clean up on
I think this is one of the most requested features and reasons why people use
|
@akdev1l can you please let us know if there's been any progress in implementing this? This export feature, alongside the ability to update all containers with one command in distrobox, is what has me thinking of layering it in to the base image. It would be great if this was natively supported in toolbox so we don't go bloating our installations unnecessarily. |
It would be really good to have a feature like this in toolbx. please 🫶👍 |
Is your feature request related to a problem? Please describe.
I use Fedora Silverblue and I use a separate toolbox for development. I installed my IDE in the toolbox, but since toolbox doesn't automatically add desktop entries, I had to manually make one.
Describe the solution you'd like
Automatically add .desktop files made in toolboxes to the hosts
$HOME/.local/share/applications/
Describe alternatives you've considered
Manually writing a desktop file is tedious and not exactly a smooth experience.
Additional context
Nil
The text was updated successfully, but these errors were encountered: