quoid / userscripts

An open-source userscript manager for Safari
https://quoid.github.io/userscripts/
GNU General Public License v3.0
3.22k stars 184 forks source link

Userscripts folder cannot be OneDrive (greyed out) #645

Closed BartmanEH closed 5 months ago

BartmanEH commented 5 months ago

MS OneDrive is the only app on iOS that allows you to "Make Available Offiline". iCloud Drive files eventually get removed from the device. Frequently, my userscripts for a page won't run because they've been removed. So for now I've been using a folder "On My iPhone" but this is inconvenient because it's not sync'd with my other systems. Everytime I update a script on another systems, I have to manually copy it into the "On My iPhone" folder. If I was able to select the OneDrive folder, I would have a way to keep scripts sync'd across devices and keep them on my iPhone: Screenshot showing the OneDrive option to "Make Available Offline":

Make Available Offline

Screenshot showing that the OneDrive folder cannot be selected in Userscripts->Set Userscripts Directory

OneDrive folder cannot be selected

I'm hoping there's a simple reason why Userscripts setup cannot select a OneDrive folder and that this could be added.

ACTCD commented 5 months ago

The reason is indeed simple, but it is not something we can solve. Which is that the third-party file provider does not provide open-in-place supports.

Instead, this extension supports you to open and edit documents in-place from any third-party app.

References: https://developer.apple.com/documentation/uikit/view_controllers/providing_access_to_directories https://developer.apple.com/documentation/uikit/uidocumentpickerviewcontroller

Duplicate of #234

BartmanEH commented 5 months ago

so how are people synchronizing scripts across platforms? iCloud is useless.

ACTCD commented 5 months ago

We're tracking this in issue: https://github.com/quoid/userscripts/issues/520