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

On Linux Xuggle not available if /tmp/xuggle ends up owned by another user (e.g. root if as part of install) #42

Open
brettle opened this issue Jan 25, 2022 · 2 comments

Comments

@brettle
Copy link

brettle commented Jan 25, 2022

To reproduce:

  1. Follow the installation instructions, accepting the defaults including to start Tracker post-install.
  2. Tracker starts and can use Xuggle. Note that a /tmp/xuggle directory will be created and it will be owned by root and not writable by anyone else.
  3. Exit Tracker and restart it as a non-root user. Tracker now complains that it can't use Xuggle.
  4. Exit Tracker and remove the directory with sudo rm -rf /tmp/xuggle
  5. Start Tracker again as a non-root user. Tracker no longer complains about lack of Xuggle. Note that /tmp/xuggle is now owned by the non-root user.
@dobrown
Copy link
Member

dobrown commented Feb 13, 2022

Thanks for the great steps. Super helpful. I think I fixed this by deleting the /tmp/xuggle folder every time Tracker exits. I just posted this fix as a "beta" tracker jar on the Tracker website (https://physlets.org/tracker/). The link to download the jar is on the left partway down in "Recent Tracker versions".

Please copy the beta jar into /opt/tracker. Then open Tracker's preferences (Edit|Preferences) and set the preferred Tracker Version (Runtime tab) to the beta. Restart.

Now the /tmp/xuggle folder should be deleted when you exit. Does this solve the problem?

If it does, you could make the beta be your default by renaming it tracker.jar and replacing the existing.

@brettle
Copy link
Author

brettle commented May 16, 2022

Unfortunately, the problem still persists with 6.0.8. Exactly the same steps to reproduce. I see the change you made to the code to delete /tmp/xuggle and I'm not sure why it isn't working. The directory is empty, and I can delete it from the command line (as root). Maybe xuggle has some sort of lock on it?

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