-
First of all, thank you very much Contributors for this wonderful app. It works smoothly with multiple folders, and the documentation is clear enough for me as a newbie to Linux. There is some strange behavior, which is a minor issue for me. It is only observed when using TeXstudio for editing .tex files. Given: a folder which is configured to automatically sync with OneDrive (as described in advanced-usage.md / part 7).
This does not happen when I edit .tex files in Dropbox synced folders. Using
I do not know if it is relevant, but files in OneDrive folder have permissions 600, while in the Dropbox folder the permissions are 644. I wonder what does OneDrive do to a file, which makes it look like it was changed from outside. There is also a topic in Stackexchange related to this situation https://tex.stackexchange.com/questions/575945/how-to-enable-silent-reloading-in-texstudio |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
@podkop
Once a file is uploaded to OneDrive, depending on your account type, files can be uploaded, then OneDrive modifies the file by adding metadata to this file, fundamentally changing this file. To keep the file now in-sync, the local file is updated with this now modified file. The only way to see exactly what is going on for you is to generate a verbose debug log as per this process. It could also be that TeXstudio is 'broken' - as it has been found in the past with other applications on Linux, the process by which they write files (new or modified) is not ideal.
You can change the default permissions as per: https://github.com/abraunegg/onedrive/blob/master/docs/USAGE.md#sync_dir-directory-and-file-permissions The default of 600 is there to ensure maximum user security on the files - they are your files, not group or world readable. Changing to 644 similar to Dropbox I do not think will have an impact, unless TeXstudio is expecting 644 and now cannot read the file correctly due to no group / world user access. You can test this with a file that is not being synced with OneDrive by just setting |
Beta Was this translation helpful? Give feedback.
-
However the file is different - if you compare the files, you will see subtle differences. This is why your application is complaining that it was modified outside of the application - because it was modified by SharePoint. Not an issue or bug with the client, but with SharePoint as per the GitHub issue linked in the debug. |
Beta Was this translation helpful? Give feedback.
@podkop
Unless you are building your client from source, the Fedora 33 package is old and unsupported (onedrive-2.4.8-1.fc33) - what client version are you using?
Once a file is uploaded to OneDrive, depending on your account type, files can be uploaded, then OneDrive modifies the file by adding metadata to this file, fundamentally changing this file. To keep the file now in-sync, the local file is updated with this now modified file.
The only way to see exactly what is going on for you is to generate a verbose debug log as per this process.
It could also be that TeXstudio is '…