Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VLC does not find libvlc #10

Open
probonopd opened this issue Mar 20, 2020 · 7 comments
Open

VLC does not find libvlc #10

probonopd opened this issue Mar 20, 2020 · 7 comments

Comments

@probonopd
Copy link
Collaborator

probonopd commented Mar 20, 2020

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
Copy link
Owner

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
Copy link
Owner

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
Copy link
Collaborator Author

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
Copy link
Owner

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

@probonopd
Copy link
Collaborator Author

probonopd commented Mar 22, 2020

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

for lib in ${libexecs[@]}; do
sudo chroot --userspec=1000:1000 ${mount_point} /usr/libexec/${lib} &
APID=$!
sleep 2
kill $APID
done
sudo chroot --userspec=1000:1000 ${mount_point} ${command} &

Not quite working yet, do you know why?

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

@sudo-give-me-coffee
Copy link
Owner

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

@probonopd
Copy link
Collaborator Author

Maybe

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants