mtkennerly / ludusavi

Backup tool for PC game saves
MIT License
2.81k stars 62 forks source link

Ludusavi unable to detect rclone when Ludusavi is installed via Flatpak #394

Closed MRDGH2821 closed 1 month ago

MRDGH2821 commented 2 months ago

Ludusavi version

v0.25.0

Operating system

Linux

Installation method

Flatpak

Description

I have rclone installed in my system, but ludusavi is unable to detect it. I'm using Fedora 40 & installed ludusavi from flathub.

Logs

No response

mtkennerly commented 2 months ago

Hi! Could you share how you've configured Rclone in Ludusavi (path and arguments)?

MRDGH2821 commented 2 months ago

Hi! Could you share how you've configured Rclone in Ludusavi (path and arguments)?

At first I typed /usr/bin/rclone with the default preset parameters. Didn't work.

But if I pick rclone from the picker icon, it was able to use rclone but the path in app was different. I realised that this is a limitation of flatpak.

So I tinkered with flatseal to allow access to access to system binaries, still no luck.

In the end, I downloaded binary release, but I'm open to installing flatpak for more testing.

mtkennerly commented 2 months ago

Gotcha. I'm not sure offhand how to get the Flatpak version to cooperate, but I know the permissions can be finicky 😅

I think using the standalone release is a good idea for now. I'll try to set up a test system sometime so I can look into this further.

MRDGH2821 commented 2 months ago

I discovered 2 apps which use rclone via flatpak.

Both apps use a different approach.

Rclone shuttle

https://github.com/pieterdd/RcloneShuttle

It uses system installed rclone. After installing the app it tells me to configure rclone via CLI then use the app to see the remotes.

Celeste

https://github.com/hwittenborn/celeste

This doesn't use system rclone, nor does it use system rclone generated config. 

It possibly comes bundled with its own rclone binary. 

I can say this because Fedora 40 has an older version of rclone (which doesn't support proton drive) and Celeste was able to connect to Proton drive.

So ludusavi flatpak can either bundle rclone like Celeste OR use similar configuration as of Rclone Shuttle.

P.S. I haven't looked into source code of either apps, thus my observations may come out wrong with respect to code. My observations are purely based on using the apps as end user. But I have a feeling that Rclone Shuttle's approach is likely gonna help here.

mtkennerly commented 2 months ago

I found a solution that worked for me on Ubuntu. If you give Ludusavi the host filesystem permission (flatpak override com.github.mtkennerly.ludusavi --filesystem=host), then you can reference the system Rclone as /var/run/host/usr/bin/rclone. Could you give it a try?

MRDGH2821 commented 2 months ago

I found a solution that worked for me on Ubuntu. If you give Ludusavi the host filesystem permission (flatpak override com.github.mtkennerly.ludusavi --filesystem=host), then you can reference the system Rclone as /var/run/host/usr/bin/rclone. Could you give it a try?

This indeed works!

mtkennerly commented 1 month ago

Great :D I've updated the documentation with a note about that.