files-community / Files

Building the best file manager for Windows
https://files.community
MIT License
32.89k stars 2.1k forks source link

Bug: Google Drive doesn't show in Cloud Drives when mounts as a folder #15698

Open kohyung opened 5 days ago

kohyung commented 5 days ago

Description

Google Drive didn't show up in Cloud Drives Sidebar, Dropbox & Onedrive got no problem. screenshot-1719384747145

Steps To Reproduce

Just new install already like that. screenshot-1719384747145

Requirements

New installation already like that. screenshot-1719384747145

Files Version

3.5.0.0

Windows Version

10.0.19045.4529

Log File

debug.log

Josh65-2201 commented 4 days ago

Thanks for the report. Have you set up the desktop client, opened it and restarted Files from the system tray?

kohyung commented 4 days ago

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: @.***>

Josh65-2201 commented 4 days ago

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.

kohyung commented 4 days ago

Hi, pls refer to the attachment, I have tried a few times. screenshot-1719404309390

Josh65-2201 commented 4 days ago

Can you send a screenshot of the full Windows File Explorer window on This PC

kohyung commented 4 days ago

Screenshot 2024-06-26 22 33 00

Josh65-2201 commented 4 days ago

Need a screenshot from Windows File Explorer, not Files.

kohyung commented 4 days ago

Screenshot 2024-06-26 22 37 44

hez2010 commented 3 days ago

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:

  1. Read the value of PerAccountPreferences from HKEY_CURRENT_USER\Software\Google\DriveFS
  2. Parse the value as json
  3. Read per_account_preferences as an array and add all items in to the sidebar, the path to Google Drive is saved in mount_point_path

/cc: @yaira2