Bug: Google Drive doesn't show in Cloud Drives when mounts as a folder
Description
Google Drive didn't show up in Cloud Drives Sidebar, Dropbox & Onedrive got no problem.
Steps To Reproduce
Just new install already like that.
Requirements
New installation already like that.
Files Version
3.5.0.0
Windows Version
10.0.19045.4529
Log File
Thanks for the report. Have you set up the desktop client, opened it and restarted Files from the system tray?
Hi, pls refer to the attachment, I have tried a few times.
On Wed, Jun 26, 2024 at 7:14 PM Josh65-2201 @.***> wrote:
Thanks for the report. Have you set up the desktop client, opened it and restarted Files from the system tray?
— Reply to this email directly, view it on GitHub https://github.com/files-community/Files/issues/15698#issuecomment-2191438031, or unsubscribe https://github.com/notifications/unsubscribe-auth/APU7TPJHLLHP3JAU2QUWAQTZJKPB5AVCNFSM6AAAAABJ5HKXDGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCOJRGQZTQMBTGE . You are receiving this because you authored the thread.Message ID: @.***>
Email attachments don't work. You will have to click the View on GitHub link at the bottom of the email > Copy and paste or click the add attachment button to select the file > Wait until you don't see uploading in the text > Click the green comment button.
Hi, pls refer to the attachment, I have tried a few times.
Can you send a screenshot of the full Windows File Explorer window on This PC
Need a screenshot from Windows File Explorer, not Files.
We don't support Google Drive mounting as a folder instead of a dedicate drive currently.
@Josh65-2201 To detect the mounting point of Google Drive properly, we need to inspect the value of PerAccountPreferences in HKEY_CURRENT_USER\Software\Google\DriveFS from the Windows Registry.
Marking it as a good first issue as the fix should be trivial:
- Read the value of
PerAccountPreferencesfromHKEY_CURRENT_USER\Software\Google\DriveFS - Parse the value as json
- Read
per_account_preferencesas an array and add all items in to the sidebar, the path to Google Drive is saved inmount_point_path
/cc: @yaira2
Hello, I would like to try to work on this if that is okay. I think I found the place in the source code where I would need to make changes, and I plan to start working on it tomorrow. I am aware of the contributing guidelines and will follow them.
Thank you! Please reach out if you have any questions.
No problem! I made some progress on exploring the problem today (see the notification above about the commit I just made in a scratch repo that references this issue), and I'm hoping to submit a pull request sometime this weekend.
@kohyung we've resolved the issue in our development branch, and it will be included in the next update. Huge shoutout to @wharvex for contributing this fix.