Drive Letters from Google Drive on DOPUS toolbar - changed behavior

I have two Google Drive accounts. One is streamed (w/ drive letter J:) and the other mirrored (w/ drive letter G:). It used to be, when I clicked on these drives in the DOPUS toolbar, that they would just display in the existing lister. Now I'm experiencing two different (and unwanted) behaviors with these two drive buttons on the DOPUS toolbar:

-The streamed drive opens a level above, showing, among other things, a folder called My Drive
-The mirrored drive also opens a level above, but shows a shortcut for the drive rather than a folder like the streamed drive does. Further, when I click this shortcut, it opens a new DOPUS window rather than opening within the current lister.

See attached screenshots.


I'm assuming Google made some change, but does anyone know how to get these drives from the DOPUS toolbar just do open the corresponding "My Drive" folder like they used to?

If not possible, does anyone know how to get the My Drive shortcut to default to opening within the existing lister (rather than needing to right-click and choose "Open Target's Folder"?

Thanks for any help.

What is the button? E.g. Part of the favorites list, a custom-made button, something generated by the Drive Buttons command, etc.

If it’s a custom button, what’s the command that it runs?

They're part of the "Fixed Drives" section of the standard DOPUS toolbar. Google Drive assigns them a drive letter, and they auto-appear here.

So Google changed the layout of the drive? Presumably you see the same result if you navigate to the drive letter in other ways, including in File Explorer?

You could hide the drive letter from the toolbar and instead make a button that points to the folder below it. That could be hidden when the drive is not mounted. Let me know if you want details on how to do that.

There may also be a way to configure Google Drive to use the old drive layout, but I’m not an expert on that.

Thanks for the help, Leo.

Here's what I see in File Explorer. It only shows the shortcuts, not the other folders. The other difference is that when I double-click on the shortcut via File Explorer, it opens in the same window (which is the behavior I would like in DOPUS).


Yes, I'd love to know how to do the workaround you mention!

Explorer's just configured to hide things with the Hidden attribute while Opus isn't. You can change that via the Folder menu in the main Opus window.

It looks like the shortcut goes to D:\Google Drive. What happens if you go to that location directly in Opus?

It's a bit strange that Google Drive has created a drive letter where the only thing in it is a shortcut to another drive. Although Google Drive has a long history of doing strange things, so this doesn't surprise me too much. :slight_smile:

Yes, I've made a button already that goes directly to D:\Google Drive. But I was hoping for a solution that fixed the issue with the fixed drives area of DOPUS, as now I have two sets of buttons.

You could hide the drive letter from the toolbar.... That could be hidden when the drive is not mounted. Let me know if you want details on how to do that.

I'd love if it if you could tell me how to do this. Thanks!

Hiding the drive letter can be done by editing the command which is generating the drive buttons.

It probably runs something like this now:

Go DRIVEBUTTONS=fixed

To exclude G drive, change it to:

Go DRIVEBUTTONS=fixed,-g

Another solution would be a small script add-in that diverts you from G:\ to D:\Google Drive.

Double-click this to install it:

DriveLetterDivert.opusscriptinstall (828 Bytes)

Code for reference:

// DriveLetterDivert

// Called by Directory Opus to initialize the script
function OnInit(initData)
{
	initData.name = "DriveLetterDivert";
	initData.version = "1.0";
	initData.copyright = "(c) 2024 Leo Davidson";
	initData.url = "https://resource.dopus.com/t/drive-letters-from-google-drive-on-dopus-toolbar-changed-behavior/51689/8";
	initData.desc = "Go somewhere else instead of a drive letter";
	initData.default_enable = true;
	initData.min_version = "13.0";
}

// Called before a new folder is read in a tab
function OnBeforeFolderChange(beforeFolderChange)
{
	var fsu = DOpus.FSUtil;
	if (fsu.ComparePath(beforeFolderChange.path, "G:\\"))
	{
		return "D:\\Google Drive";
	}
}

That's fantastic, Leo! Thanks so much for the script. I modified it to work with both of my Google Drives (one streamed, one mirrored), as they required different target paths.

1 Like