I have a simple question: How can I get my NAS (and maybe also my google-drive) to show up in the dock?
The dash to dock extension, has an option to show mounted devices in dock - but my mounted NAS is NOT showing.
I mounted my NAS in /media/nas
In gnome-files the NAS is showing as mounted device
In dash to dock NAS is NOT showing as mounted device (see screenshot)
Additionally I thought my connected google-drive should also show up in the dock, but it isn’t. I remember, when I last used Ubuntu, that my google-drive was showing up in the dock.
I am no longer familiar with Gnome. One thing I do know is the list is provided by gvfs. Using Thunar as my file manager I have found items stored in the gnome keyring is remembered even the app is no longer installed.
I know because I tested with gvfs-google package on Openbox.
When a successful connection has been made the login is stored in the gnome keyring - and is available to gvfs even gnome-control-center has been removed from my Openbox installation and whether connected or not - it is listed in Thunar navigation pane.
Yes - I know you are using Gnome - nonetheless - my thought is your issue is extension related and my recommendation is therefore to contact the developer using their issue tracker.
@Chrysostomus Thanks for your answer!
After the response of @linux-aarhus I created this issue today, so the issue you linked is actually mine
Probably should add that to my initial post.
Thank you anyways though!
Do I need to pick a comment as the solution?
The issue is not resolved yet, but since it appears that this is a bug in dash-to-dock, everything we can do here was creating that issue on github.
I figured it might be you because of the similarities, but linked it anyway just in case. I don’t think it is necessary to mark this as solved, as the issue is ongoing, and marking it solved expedites the closing of the thread.
So, I just downloaded the source and looked into dash-to-dock because I have nothing to do on a Saturday evening with lockdowns (although admittedly I have absolutely no idea how gnome-extensions work).
One thing that immediately popped into my eye was the following:
So it appears that the author of dash-to-dock is purposely NOT displaying network volumes.
Anyway, I deleted those 3 lines, and built dash-to-dock again.
My google-drive is now showing in the dock.
My NAS that I mounted in /media/nas is still not showing up though.
And somehow, when I click on the google-drive-icon in the dash-to-dock, it opens with Code-OSS instead of nautilus
So I’m not sure if this is going to get fixed, since it seems as if this is the behavior that is intended of dash-to-dock’s author.
@linux-aarhus I don’t think so, since this is the general mount-section of the code.
if (!volume.get_identifier('class') == 'network') {
return;
}
This code above would probably result in usb-devices (and any other mounted device that is no network-device) to not get shown in the dock.
Admittedly, I didn’t look to deep into the source-code, because I am no expert in gnome-extensions anyways.
It’s probably best to hope that this will get fixed by the dash-to-dock author.
One thing to note: This special handling for network devices is in dash-to-dock since January 2020. The commit message “locations: filter out network volume locations” suggests, that these 3 lines should filter out any network-device, and thats what happens at the moment.