[konsole] [Bug 468391] New: Konsole should be able to switch to/from a distrobox profile
Thiago Sueto
bugzilla_noreply at kde.org
Tue Apr 11 16:30:00 BST 2023
https://bugs.kde.org/show_bug.cgi?id=468391
Bug ID: 468391
Summary: Konsole should be able to switch to/from a distrobox
profile
Classification: Applications
Product: konsole
Version: unspecified
Platform: Other
OS: Linux
Status: REPORTED
Severity: wishlist
Priority: NOR
Component: general
Assignee: konsole-devel at kde.org
Reporter: herzenschein at gmail.com
Target Milestone: ---
SUMMARY
Distrobox is a tool used to run podman/docker containers and integrate them in
userspace.
See: https://github.com/89luca89/distrobox
It comes in MicroOS Desktop by default and I think also Fedora Kinoite. In
these distros, you're expected to never install anything to your host root,
only to install userspace applications as flatpaks and using terminal tools
from inside a distrobox container.
One cool thing people can do is to make a custom terminal profile that runs and
enters a distrobox container, then setting it as the default profile, so it's
immediately ready as soon as you open your terminal. I use this with both
Konsole and Yakuake.
See:
https://github.com/89luca89/distrobox/blob/main/docs/useful_tips.md#using-distrobox-as-main-cli
By default, using a distrobox profile breaks the Konsole SSH plugin, but I
managed to work around this by enveloping distrobox in a shell (I use fish in
the container):
/usr/bin/bash -c "distrobox enter mycontainer -- fish --login"
So the only thing that I think is missing from the UX is being able to switch
from/to distrobox profiles, but this doesn't work. Right clicking and
attempting to change the profile does nothing.
This only works if I go to File -> New Tab -> select a different profile, but
this sounds more like a workaround for the fact Konsole can't switch to/from
distrobox.
FWIW, GNOME Terminal isn't able to switch from/to distrobox either, and it
doesn't even have an option to create a new tab running a specific profile, so
Konsole is way better off than it. But it would be great to have this
functionality.
STEPS TO REPRODUCE
1. Install podman + distrobox
2. Create a distrobox container with distrobox create
3. Create a Konsole profile that runs /usr/bin/distrobox enter
4. Right click the terminal and attempt to switch to a distrobox profile
OR
3. Create a Konsole profile that runs /usr/bin/distrobox enter and make it the
default
4. Right click the terminal and attempt to switch away from the distrobox
profile
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the konsole-devel
mailing list