Page 1 of 2
Removing Drive Icons from the Desktop
Posted: 03 Sep 2024, 10:24
by roro
Hi all,
I'm booting from a USB stick.
After booting, drive icons for the hard disk partitions (sda1, sda2, etc.) appear on the screen, totaling 5 partitions.
I can unmount these using the command umount /mnt/sda1 and so on.
However, I want these icons to disappear completely, except for sda4.
Is this possible?
If yes, how?
Thank you very much.
Removing Drive Icons from the Desktop
Posted: 04 Sep 2024, 01:19
by ncmprhnsbl
roro wrote: ↑03 Sep 2024, 10:24
However, I want these icons to disappear completely, except for sda4.
seems like it's all or nothing in this case.
see: rightclick on desktop> Desktop Settings.. > Icons > Default icons (box) > Removable Devices > Disks and Drives
somebody else might know some trick to do what you want.
EDIT: a workaround might be to:
1. do the above
2. then in thunar, go to /mnt/, rightclick on sda4 > Send To > Desktop (Create Link)
Removing Drive Icons from the Desktop
Posted: 05 Sep 2024, 09:22
by roro
Hi ncmprhnsbl,
I removed the relevant entries in the file
/home/guest/.config/xfce4/desktop/icons.screen.latest.rc
But after restarting, the entries are back and the icons are arranged differently.
Removing Drive Icons from the Desktop
Posted: 05 Sep 2024, 09:34
by beny
hi, go to setting desktop you have three panel the last is icon deselect what you want on,and after if you want you can create a link to the device you want show up PS: i suppose you have changes activated,
Removing Drive Icons from the Desktop
Posted: 05 Sep 2024, 13:33
by roro
Hi beny,
However, I want these icons to disappear completely, except for sda4.
And that cannot be realized!
As ncmprhnsbl said:
"seems like it's all or nothing in this case." !!
Removing Drive Icons from the Desktop
Posted: 05 Sep 2024, 13:51
by Ed_P
roro wrote: ↑05 Sep 2024, 09:22
I removed the relevant entries in the file
/home/guest/.config/xfce4/desktop/icons.screen.latest.rc
But after restarting, the entries are back
How are you booting? Are you saving changes?
Removing Drive Icons from the Desktop
Posted: 05 Sep 2024, 16:55
by beny
hi roro you can do this with thunar open thunar you have the list of the mounted device click with the right mouse button you have a "send to" that can create a link on desktop try it
Removing Drive Icons from the Desktop
Posted: 06 Sep 2024, 07:47
by roro
Hi beny,
"you have the list of the mounted device" ???
How do I get this list?
Removing Drive Icons from the Desktop
Posted: 06 Sep 2024, 09:49
by beny
hi roro, porteus have a script that remake the fstab at boot everytime, and if you don't have a cheatcode that mask hard disk you can have the list of the device discovered by fstab,ok not mounted but if you choose one you have to enter the password or use the sudo option,if you use the xfce4 and thunar like file manager you have this in the left panel named places,also if you boot the usb key on a windows system on a notebook you have the list of the partitions,the windows policy allow you to open or not the hard disk,but again click on the device on thunar right mouse button menu and you have a "send to" option choose desktop and you have the link on desktop of your partion ready to use
Removing Drive Icons from the Desktop
Posted: 06 Sep 2024, 19:08
by Ed_P
roro wrote: ↑06 Sep 2024, 07:47
Hi beny,
"you have the list of the mounted device" ???
How do I get this list?
This works
roro.
Code: Select all
cat /var/log/porteus-livedbg | grep "/dev/"
What format is your USB drive
roro? Are you booting it on BIOS or EFI systems?
Removing Drive Icons from the Desktop
Posted: 06 Sep 2024, 19:30
by beny
hi roro, open thunar go on preferences,file manager prefernces,advanced, take a look if you have the volume management activated, with gvfs you can see all the devices when are connected also the usb devices,maybe you don't have activated it
Removing Drive Icons from the Desktop
Posted: 07 Sep 2024, 14:08
by Kulle
With this command, it should be possible to remove the icon for sda1 from the screen.
But how do I get the xzm module for gvfs?
Code: Select all
gvfs-set-attribute -t boolean /mnt/sda1 metadata::hidden true
Removing Drive Icons from the Desktop
Posted: 08 Sep 2024, 00:31
by ncmprhnsbl
Kulle wrote: ↑07 Sep 2024, 14:08
But how do I get the xzm module for gvfs?
porteus comes with gvfs (in 002-xorg)
and it seems that gvfs-set-attribute is an older feature that has been dropped from more recent gvfs.
might be possible to the same with gio directly ..something like
Code: Select all
gio set -t 'string' /mnt/sda1 'metadata::hidden' 'true'
had no effect here, though.. (and it refused to take 'boolean' as a type for file metadata)
Removing Drive Icons from the Desktop
Posted: 08 Sep 2024, 07:42
by Kulle
Hi ncmprhnsbl,
I've now tried gio too.
No success
What roro wants is probably not possible?
Removing Drive Icons from the Desktop
Posted: 08 Sep 2024, 14:29
by beny
hi roro, also the old way work in this task example:terminal sudo fdisk -l give you a list of the modules mounted and hard disk to so you can open another terminal sudo ln -s /mnt/sdx1 Desktop, btw if you use the key on other computer with a different devices index,maybe the device name is different,but this is a thing that you know,ok as you wish is a link so you can remove without issue if don't match device name.