The Workstation folks are looking into Ptyxis to replace GNOME Terminal (see fedora-workstation#417). Among other things, this provides integration points for container-native tooling (such as Podman, Incus, and nspawn). This is used to provide a much better story around Toolbx and distrobox.
We should try to see if we can do something similar with Konsole.
Also of note, @sfaulken is tracking this for openSUSE Kalpa too: https://code.opensuse.org/Kalpa/Development/issue/12
Metadata Update from @ngompa: - Issue untagged with: kinoite
Metadata Update from @ngompa: - Issue tagged with: kinoite
Upstream bug filed: https://bugs.kde.org/show_bug.cgi?id=482549
+1 for this. Note that you can already do most of this manually using Konsole profiles in the mean time.
Idea: Add this to the KDE welcome dialog
simple variant: - create a user override in ~/.local/share/applications - create a minimal Konsole profile having toolbox enter toolbox as command, and Toolbox as name - edit the override Konsole desktop entry to add this as a second action using sed
~/.local/share/applications
toolbox enter toolbox
Toolbox
This could also be done via a set config file, but that would require keeping track of the desktop entry in that project, which may not be that nice.
more complex variant: - In the setup dialog, allow to specify a name for the box - and have a dropdown cotaining the available images (this seems to not be available in toolbox) - create the above but have name and image as variables
A Konsole profile is pretty easy:
# ~/.local/share/konsole/toolbox.profile [Appearance] ColorScheme=BlueOnBlack [General] Command=/usr/bin/toolbox enter toolbox #Directory=$HOME/.toolbox-home/toolbox/ #may not work in toolbox Icon=fedora-logo-icon Name=Toolbox Parent=FALLBACK/
A different color scheme makes sense, it should work on light and dark though, this does not look well on light mode.
adding such an action:
# copy override to user editable location cp /usr/share/applications/org.kde.konsole.desktop ~/.local/share/applications/ # add the action to the list sed -i '/^Actions=/s/;$/;toolbox;/' ~/.local/share/applications/org.kde.konsole.desktop # add the action cat <<EOF >> ~/.local/share.applications/org.kde.konsole.desktop [Desktop Action toolbox] Name=Toolbox Icon=fedora-logo-icon Exec=konsole --profile toolbox EOF
I do this with Distrobox which is way better in UX, and I would highly appreciate Fedora ditching Toolbox in favor of Distrobox, like Opensuse is doing. Distrobox supports - listing the available images (only in bash) - creating a box with a different home directory (toolbox FR)
deleted my post by sending an empty comment instead of editing...
I would like to have this in the KDE Welcome dialog.
Idea: - create a toolbox with name Toolbox - use default fedora image
more advanced: - allow input of a name for the box - add a dropdown menu to select the image to use
I use Distrobox and would highly appreciate Fedora joining Opensuse with its adaption, as multiple things dont seem to be possible in toolbox, like the essential isolated home directories which could break an atomic user profile, and running subcommands to change the used shell.
The creation is simple.
Konsole desktop entry:
cp /usr/share/applications/org.kde.konsole.desktop ~/.local/share/applications/ # add the toolbox action to the list sed -i '/^Actions=/s/;$/;toolbox;/' ~/.local/share/applications/org.kde.konsole.desktop # add the action cat <<EOF >> ~/.local/share/applications/org.kde.konsole.desktop [Desktop Action toolbox] Name=Toolbox Icon=fedora-logo-icon Exec=konsole --profile toolbox EOF
Konsole profile:
cat <<EOF > ~/.local/share/konsole/toolbox.profile [Appearance] ColorScheme=BlueOnBlack [General] Command=/usr/bin/toolbox enter toolbox Directory=$HOME/.toolbox-home/ Icon=fedora-logo-icon Name=toolbox Parent=FALLBACK/ EOF
In Distrobox I change the Konsole profile command to /usr/bin/distrobox-enter toolbox -- fish but this is not implemented in toolbox
/usr/bin/distrobox-enter toolbox -- fish
Log in to comment on this ticket.