Hi there - I’m trying to make use of flatpaks, but keeping them isolated from my host (as I need to experiment with a bunch of settings and I don’t want to bork my host environment. Again.)

Has anyone had actual success making this work? I’ve only been able to get anything to install by sudo-ing, but even then, I cannot get things to run. It’ll fail with file not found (but which file? verbose mode doesn’t help) or fail to connect to the system bus.

I’ve seen some posts about unmounting /var/lib/flatpak on initialization but I’ve had no luck there. (I’m on Fedora 39, which, to be honest, I’m rather enjoying.)

Is this a technique that anyone has had luck with? Worth pursuing?

FWIW, my big goal is to run bottles and I’ve had far more luck with bottles (which strongly recommends flatpak) than with winehq.

  • d3Xt3r@lemmy.nzM
    link
    fedilink
    arrow-up
    3
    ·
    edit-2
    10 months ago

    Audio works. Not sure how though, --unshare-devsys is supposed to not share the hosts devices, but I guess audio devices are an exception.

    The full isolation flags are:

    --unshare-devsys:          do not share host devices and sysfs dirs from host
    --unshare-ipc:          do not share ipc namespace with host
    --unshare-netns:        do not share the net namespace with host
    --unshare-process:          do not share process namespace with host
    --unshare-all:          activate all the unshare flags below
    
    • indigomirageOP
      link
      fedilink
      arrow-up
      2
      ·
      10 months ago

      Thank you! I just read that and assumed audio wouldn’t. I don’t have warm fuzzies about this.

      That said, I’ll give it a go.

    • indigomirageOP
      link
      fedilink
      arrow-up
      1
      ·
      10 months ago

      Unfortunately no luck here. Same issue even when setting --unshare-all flag. I suspect I need to try a different approach.