Bug 468391 - Konsole should be able to switch to/from a distrobox profile
Summary: Konsole should be able to switch to/from a distrobox profile
Status: REPORTED
Alias: None
Product: konsole
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Other Linux
: NOR wishlist
Target Milestone: ---
Assignee: Konsole Developer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-04-11 15:30 UTC by Thiago Sueto
Modified: 2023-04-11 15:30 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thiago Sueto 2023-04-11 15:30:00 UTC
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