celluloid icon indicating copy to clipboard operation
celluloid copied to clipboard

Save Position on Quit not always working

Open SnarkySarky opened this issue 9 months ago • 4 comments

Overview Description: Hello, I tried both a mpv.conf file and the build in extra mpv options, on both the position is only saved sometimes. Steps to Reproduce: 1.add save-position-on-quit=yes to mpv.con or/and mpv extra options 2.open video and skip ahead then quit 3.first try video always saves postion, close video 4.open same video, position is saved or not (random?)

Actual Results: position only saved sometimes

Expected Results:Always remember position

Version:0.26

Additional Information: mostly after the 3rd or 4th opening the video starts from the beginning not the saved position

SnarkySarky avatar May 07 '24 11:05 SnarkySarky

Saving on quit is not working at all for me in version 0.27.

butter-fly04 avatar Jun 27 '24 15:06 butter-fly04

I can't reproduce this.

Can you attach a log file? Also, are you using Flatpak?

gnome-mpv avatar Jun 27 '24 15:06 gnome-mpv

I am using Flatpak, and log file generating command doesn't work for flatpak.

butter-fly04 avatar Jun 27 '24 16:06 butter-fly04

OK, I can reproduce the problem with Flatpak.

The problem is that Celluloid doesn't have access to the real file path inside Flatpak; it can only access opened files through a FUSE filesystem provided by xdg-desktop-portal. For some reason, the path to the file inside the FUSE filesystem keeps changing if you open it through your file manager, so Celluloid can't figure out if you're opening a file that you've previously opened. This doesn't seem to happen when opening files with the file dialog, so if you only open files that way, Celluloid should be able to resume properly.

gnome-mpv avatar Jun 27 '24 18:06 gnome-mpv