Closed Humphreybas closed 3 years ago
It's a "feature" of snap, see the docs. It results in files outside of $HOME not being accessable. Here an discussion.
In case your files are on a /media device, I believe you can use sudo snap connect untrunc-anthwlock:removable-media
.
This allows untrunc-anthwlock access to the removable-media interface.
Maybe this can be requested automatically. VLC seems to do so.
Ah ok, hmmm. Interesting discussion that you point to as well, nice and heated hehe.
In my laptop I have a SSD (with the operating system and my home folder) and a larger HDD (with many of my files), I mounted the latter under /hdd
so this confinement is also not really helping me in this particular case.
So I will just continue to use the docker. I am using it with the --rm
flag by the way. To avoid leaving a container every time I run it.
docker run --rm -v ~/Videos/:/mnt untrunc /mnt/ok.mp4 /mnt/broken.mp4
Thanks!
Same here but on a mac, I tried moving everything to home folder and whatnot but it is still showing me this. I installed the package using docker: docker pull synctree/untrunc Please help, Thanks.
@madatr You are using docker, not snap. With docker you have to explicitly pass the directory which contains your files to the container. This can be done by specifying (so called) "volumes" like this: docker run -v /path/to/files:/files
. Now the untrunc executable (in the docker container) can see your files under /files
.
Complete example from the readme: docker run -v ~/Videos/:/mnt untrunc /mnt/ok.mp4 /mnt/broken.mp4
.
Related issue: https://github.com/ponchio/untrunc/issues/177
On ubuntu 18.04, I installed with:
sudo snap install --edge untrunc-anthwlock
But when I run it I get:
But the file is there.