Solution 1 : Freeze the Quick Access bar
Apparently you are trying for the peaceful coexistence of two competing Google
products, or trying to keep a product that Google considers as deprecated.
In all cases, as the Google products have no parameter for achieving this,
then some hacking is required.
I understand that you can arrive at the situation where both icons are in the
Quick Access bar, only that this does not last beyond the next reboot.
My idea then is to freeze this state of the Quick Access bar and stop
Google, or any other program, from modifying it, hopefully without causing
spurious warnings during boot.
Analysis
According to the Microsoft article
Users can't access the desktop and other resources through Quick Access in Windows 10,
the Quick Access bar lives inside:
%appdata%\microsoft\windows\Recent\AutomaticDestinations\f01b4d95cf55d32a.automaticDestinations-ms
Contrary to expectations, this is a simple file and not a folder.
The StackOverflow post
Decrypt/Read/Modify “.automaticDestinations-ms” and/or “.customDestinations-ms”
further explains that this is a
Structured Storage
file.
This ancient format is actually a file-system-within-a-file.
It is unknown why Microsoft went to all this just for the sake of a few icons.
The same post lists the open-source
OpenMCDF project
as capable of reading and the basic editing of such files,
but we won't be doing that here.
Procedure
I suggest the following (untested) procedure:
- Set up the Quick Access bar to your liking
- Copy the file
f01b4d95cf55d32a.automaticDestinations-ms
as backup
(on NTFS so as not to lose permissions)
- Right-click the file and choose Properties
- Try first in the General tab to set the file as Read-only and OK.
If this is not enough:
- In the Security tab, click Edit and set Deny for Write.
Do so for all the listed accounts, then click OK.
You should not have any problem doing it, since you are the owner of the file.
You will need to undo it at any time that you would like to modify the
Quick Access bar.
Solution 2: Rename Google Drive in the Quick Access bar
It seems like the Google Drive File Stream software searches for
Google Drive by name, so renaming it effectively disables this search.