Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No selection possible which drive icons are shown on the dock #1081

Open
rumplstielz opened this issue Jan 23, 2020 · 7 comments · May be fixed by #1103
Open

No selection possible which drive icons are shown on the dock #1081

rumplstielz opened this issue Jan 23, 2020 · 7 comments · May be fixed by #1103

Comments

@rumplstielz
Copy link

rumplstielz commented Jan 23, 2020

Searching for a "blacklist" of removable drives shown in the dock did not lead to anywhere.
The only thing that can be done is to disable the display of all or of none icons shown for removable/mounted devices.

Is there an option planned to be able to select e.g. only USB/DVD whatsoever volumes to be displayed in the dock instead of showing also mounted devices which I mount at startup (e.g. a bigger disk for data, which I do not need to be shown in the dock, as it works for me in the background and the icons just fill-up my dock)

Ubuntu Version is 19.10

br,
Kurt

@ryanerwin
Copy link

ryanerwin commented Feb 26, 2020

I'm having this same issue. My internal boot "/" disk doesn't show up on Dash to Dock (yes!), however my internal fixed HDD named "BigDisk" disk does show up (which I would like to avoid)

It's definitely very helpful for me to have temporarily mounted drives show up in the dock, but I don't really need drives that are internal to show up, and having an "unmount" option so easily accessible for drives that I have development servers connected to, isn't ideal...

image

To Kurt's point, a "blacklist" of drives you don't want to show up in the Dash to Dock would be fantastic.

sda                     8:0    0   3.7T  0 disk  
└─sda1                  8:1    0   3.7T  0 part  /media/bigdisk

Like Kurt above, I'm also running Ubuntu 19.10.

Just noticed that my /boot and /boot/efi partitions do not show up in the dock, so maybe there's a different way to mount the disk that would hide it in Dash to Dock.

From /etc/fstab (converted into a table...)

File System Mount Point Type Options Dump Pass
UUID=... /boot ext4 defaults 0 2
UUID=... /boot/efi vfat umask=0077 0 1
UUID=... /media/bigdisk auto nosuid,nodev,nofail,x-gvfs-show,x-gvfs-name=bigdisk 0 0

@ryanerwin
Copy link

I've tried updating /etc/fstab, but I still wasn't able to prevent "BigDisk" from showing up in Dash-to-Dock:

  • x-gvfs-show
  • x-gvfs-name=bigdisk

philipl added a commit to philipl/dash-to-dock that referenced this issue Feb 29, 2020
People have asked for the ability to filter out certain devices from
appearing in the doc and today it is all-or-nothing.

This change is somewhat a proof-of-concept as the user configuration
is literally a regex, which is very powerful but not terribly
intuitive. I would be interested in suggesitons on how to handle the
configuration.

Fixes micheleg#1081
@philipl philipl linked a pull request Feb 29, 2020 that will close this issue
@ndlarsen
Copy link

I've tried updating /etc/fstab, but I still wasn't able to prevent "BigDisk" from showing up in Dash-to-Dock:

* `x-gvfs-show`

* `x-gvfs-name=bigdisk`

Updated to what?

Removing this from my /etc/fstab causes the device not to be shown on the dock for me. Did you try to remove both x-gvfs-show and x-gvfs-name?

@ryanerwin
Copy link

In /etc/fstab I have tried to remove both the x-gvfs-show and the x-gvfs-name lines yet the disk still shows up for min in Dash-to-Dock.

Specifically I have tried both:

include x-gvfs-show and x-gvfs-name

/dev/disk/by-uuid/535689d4-44e2-4134-9d36-9f68f57264f3 /media/bigdisk auto nosuid,nodev,nofail,x-gvfs-show,x-gvfs-name=bigdisk 0 0

remove x-gvfs-show and x-gvfs-name

/dev/disk/by-uuid/535689d4-44e2-4134-9d36-9f68f57264f3 /media/bigdisk auto nosuid,nodev,nofail 0 0

In both cases, the internal fixed disk I would like to hide continues to show in dash-to-dock.

On the other hand, Dash-to-Dock doesn't show my root or /boot/efi partition, so there is hope...

/dev/mapper/vgubuntu-root /               ext4    errors=remount-ro 0       1
UUID=e7bc59fe-2566-4d93-bd6a-386f2d482459 /boot           ext4    defaults        0       2

@ndlarsen
Copy link

@ryanerwin Mine was mounted under /mnt and yours under /media. That would be an essentilal difference. According to https://github.com/GNOME/gvfs/blob/mainline/monitor/udisks2/what-is-shown.txt starting at line 22 at the time of writing:

If the directory for a device is known and outside /media, $HOME
(typically /home/foo) or /run/media/$USER then the device is not shown
in the user interface. Additionally, if any of component directories
in its directory starts with a dot ("."), the device is not shown
either. This policy may be overriden by use of the options x-gvfs-show
and x-gvfs-hide.

So, try adding x-gvfs-hide rather than x-gvfs-show or mount under /mnt and remove x-gvfs-show

@ryanerwin
Copy link

Thanks @ndlarsen , you were exactly correct.

Simply adding x-gvfs-hide to that entry in /etc/fstab and the entry was instantly hidden the moment I saved the changes to /etc/fstab.

@Hannes1909
Copy link

Came here 2 years later for x-gvfs-hide :-) Still works!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants