celluloid icon indicating copy to clipboard operation
celluloid copied to clipboard

Celluloid ( Flatpak ) is unable to save current playback position when pressing Shift + Q

Open type2b opened this issue 4 years ago • 10 comments

Overview Description: Celluloid ( Flatpak ) is unable to save current playback position when pressing Shift + Q

Steps to Reproduce:

  1. Open Celluloid
  2. Press Shift + Q

Actual Results: It doesn't save the last playback position

Expected Results: Celluloid saves the current playback position

Version: 0.16

Additional Information: This error was mentioned on GitHub, hopefully it's fixable.

type2b avatar Mar 13 '20 04:03 type2b

The non-flatpak version of Celluloid does not have the problem above I removed the Flatpak version of Celluloid and reinstalled it with "sudo apt install celluloid" and now Shift+Q works. I'm using Pop!_OS 19.10

type2b avatar Mar 13 '20 05:03 type2b

The flatpak version probably doesn't have permission to access the watch_later directory (it's usually under $XDG_CONFIG_HOME/celluloid).

/cc @TingPing

gnome-mpv avatar Mar 13 '20 15:03 gnome-mpv

You have complete and total access to $XDG_CONFIG_HOME. If it is configured elsewhere that could fail.

TingPing avatar Mar 15 '20 02:03 TingPing

In testing it works fine here.

TingPing avatar Mar 15 '20 02:03 TingPing

I haven't changed anything on Pop!_OS 19.10 Flatpak was installed by following the official guide: _https://flatpak.org/setup/Pop!OS/

I'm not excluding that it can be an error from my side, sometimes even a clean installation can have errors. Hopefully it was an isolated error, thank you for your time.

type2b avatar Mar 15 '20 02:03 type2b

I've just tested with Pop!_OS 19.10 and it seems to work fine for me as well.

Did you perhaps launched Totem by mistake? If you didn't explicitly set Celluloid as the default application and tried opening a video file by double clicking on it, Totem will be used instead of Celluloid.

gnome-mpv avatar Mar 15 '20 13:03 gnome-mpv

Totem was "sudo apt purge'd" from my system when I tested Celluloid "Flatpak", so I doubt that Totem was running.

type2b avatar Mar 15 '20 13:03 type2b

I'm also facing the same issue while using the flatpak in clear-linux.

soo-shan avatar Apr 04 '20 21:04 soo-shan

Had the same issue Flatpak + Pop_OS! 20.10

just installed via apt

joshirio avatar Mar 09 '21 17:03 joshirio

Still getting this issue on the latest flatpak version (v0.25).

But here's what I have observed:

Whenever the file is closed, celluloid does indeed write a proper file into the watch_later directory. When you repeat this process you will find that a new file, with a fresh hash, is being created every time instead of modifying the same file.

Now, after setting write-filename-in-watch-later-config in mpv.conf one thing became clear:

/run/user/1000/doc/169e5aff/Code Europe 2022 Keynote by Walter Bright.webm /run/user/1000/doc/47ebe505/Code Europe 2022 Keynote by Walter Bright.webm

It seems the same video file gets a different path due to the (desktop?) portal. And since MPV is creating the hash based on the filename and not the actual file, celluloid can't find the proper hash in the watch_later directory when resuming.

EDIT, workaround:

If you set ignore-path-in-watch-later-config in mpv.conf, celluloid seems to be able to resume files in the flatpak version.

rassoc avatar Jul 16 '23 21:07 rassoc