34

This is very much a "Windows thing" to do but I would like to preload a Distrobox on system start.

The benefit is that distrobox enter BOXNAME or launching a binary or app from distrobox-export is way faster.

On Fedora Kinoite (Atomic KDE) with Podman, I use this:

cat ~/.config/autostart/preload-BOXNAME.desktop <<EOF
[Desktop Entry]
Type=Application
Name=Preload the Distrobox container BOXNAME
Exec=/usr/bin/podman start BOXNAME 
EOF

This is a KDE specific workaround, as only "Applications" reliably autostart.

In the app menu enter "Autostart" and go to the settings page, the box should appear there.

Log out and back in, go to the same settings page to verify.

top 3 comments
sorted by: hot top controversial new old
[-] possiblylinux127@lemmy.zip 9 points 6 days ago
[-] boredsquirrel@slrpnk.net 2 points 5 days ago

Okay true, a systemd service would also work.

Having it as a user service in ~/.config/systemd/user/ would also work without privileges (as that is one part of Atomic OSses)

[-] possiblylinux127@lemmy.zip 1 points 5 days ago

That's what the recommended config is

this post was submitted on 22 Jun 2024
34 points (100.0% liked)

Linux

4317 readers
261 users here now

A community for everything relating to the linux operating system

Also check out !linux_memes@programming.dev

Original icon base courtesy of lewing@isc.tamu.edu and The GIMP

founded 1 year ago
MODERATORS