sudo-give-me-coffee / flatpak2appdir

A proof of concept to demonstrate a viable way to turn a Flatpak into AppDir
MIT License
28 stars 2 forks source link

VLC does not find libvlc #10

Open probonopd opened 4 years ago

probonopd commented 4 years ago

Why is that?

My strategy right now to verify this method of doing things is to find as many broken apps as possible, and to analyze why they are broken. I think that this way we can learn best what works and what doesn't work.

sudo-give-me-coffee commented 4 years ago

In my test libvlc is only loaded if VLC run's without root access, we need pass impression on chroot that "user" is unprivileged since any sandbox affects the access time. but i have no idea how to do this

sudo-give-me-coffee commented 4 years ago

My strategy right now to verify this method of doing things is to find as many broken apps as possible, and to analyze why they are broken. I think that this way we can learn best what works and what doesn't work.

Is good, my approach is failing, i focused on apps that i know that will works

probonopd commented 4 years ago

Why do we run pkg2appdir as root? Is it necessary? We could just run the mount/unmount/... operations as root, and everything else as a normal user. Especially the test run of the application should not be run as root. This way, the test run resembles more closely what goes on when the user runs the application.

What do you think?

sudo-give-me-coffee commented 4 years ago

The problem is with chroot, it still needs to be run as root

probonopd commented 4 years ago

The application inside the chroot should be run as normal user though

https://github.com/sudo-give-me-coffee/flatpak2appdir/blob/dd315b49279422d9edb5c917205d201fcd0210e4/flatpak2appdir#L100-L107

Not quite working yet, do you know why?

https://travis-ci.org/github/sudo-give-me-coffee/flatpak2appdir/builds/665229475

sudo-give-me-coffee commented 4 years ago

This n't found gedit, may be an error with flathub install?

probonopd commented 4 years ago

Maybe