Closed ghost closed 6 years ago
/newroot is a directory mapping that is made inside of flatpak, and it does not exist outside of the sandbox. What you need to do is set the pax flags on the binary itself, in the flatpak lib dir.
I don't run Subgraph, but on Dapper Linux, flatpak stores all runtimes and applications inside the /var/lib/flatpak
directory. On my system, the Krita binary lives here:
/var/lib/flatpak/app/org.kde.krita/current/active/files/bin/krita
You can quickly test with setfattr / getfattr, but paxrat works as well. In the "bin" directory where the krita binary lives:
$ sudo setfattr -n user.pax.flags -v em krita
and then looking at the flags:
$ getfattr -n user.pax.flags krita
# file: krita
user.pax.flags="em"
And krita works as expected when you launch it.
Do the same on other programs you want to work. I have scripts to handle all of this stuff in my github repos, do take a look.
That's correct!
Good night,
I've recently tried installing Gimp and Krita through Flatpak, as through it I can get access to their latest release. Both of them launch, but Krita gets terminated before the welcome screen vanishes.
I've tried adding a paxrat conf file for it under
etc/paxrat/conf.d
like so:Though it seems that the
/newroot
is created as the sandbox is launched. So it fails to assign flag to it:How to proceed?