celluloid-player / celluloid

A simple GTK+ frontend for mpv
https://celluloid-player.github.io
GNU General Public License v3.0
1.08k stars 88 forks source link

Feature request: add shared-memory plug for snap #958

Open thatLeaflet opened 1 week ago

thatLeaflet commented 1 week ago

My use case: I store movies on a large, slow hard drive. Due to this, it takes a fair amount of time for a movie to be initially loaded and jumping around the timeline may cause freezes. But as I have a lot of RAM, I would like to be able to copy a movie from my slow HDD to my RAM (in /dev/shm) so that the loading is much quicker. And by putting the file directly into RAM, I can avoid unnecessary writes to my SSD.

However, the snap version of celluloid does not have permission to read /dev/shm. This can be remedied by adding the shared-memory plug. If this plug is set to private mode, then it can be autoconnected by default without needing to contact the snap store. See: https://snapcraft.io/docs/shared-memory-interface.

sameersharma2006 commented 1 week ago

Snap Maintainer here, I have never heard or saw any use case where access to /dev/shm is required, nevertheless i will look into this.

Given that this doesn't needs auto-connect its fairly a simple addition to the snap.