Htop dentro do toolbox

Não sou usuário de endless os,mas estava cá a pensar,seria possível o htop vir instalado com o um aplicativo com ícone por dentro do toolbox?

Yes it’s possible, but not directly. Toolbox uses Podman in the background, so essentially you need to create a Desktop Entry file for running a command inside the Toolbox created container. If interested i can give you an example tomorrow when back at home.

So, let’s assume that you have a toolbox where you installed some application, like the OpenJDK to run some Java Application (that’s what i often use Podman/Toolbox for)

Normally, i would start my application from withing Toolbox with the following command:

java -Xmx256m -jar ~/Digital/Digital.jar

Now, to run it from a Icon, create a new Desktop Entry file named ~/.local/share/applications/digital.desktop with the following Content:

[Desktop Entry]
Type=Application
Name=Digital Logic Designer
Icon=/sysroot/home/test/Digital/icon.svg
Exec=toolbox run java -jar /sysroot/home/test/Digital/Digital.jar
Terminal=true

Of course, adopt it to your specific environment and needs. Now run:

chmod +x ~/.local/share/applications/digital.desktop
gio set ~/.local/share/applications/digital.desktop metadata::trusted yes

The icon will start to appear:
image
Click on it to run the application:

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.