Removing Drive Icons from the Desktop

Non release banter
roro
Black ninja
Black ninja
Posts: 74
Joined: 04 Aug 2022, 08:41
Distribution: Porteus 5.0 XFCE

Removing Drive Icons from the Desktop

Post#1 by roro » 03 Sep 2024, 10:24

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.

User avatar
ncmprhnsbl
DEV Team
DEV Team
Posts: 4091
Joined: 20 Mar 2012, 03:42
Distribution: v5.0-64bit
Location: australia
Contact:

Removing Drive Icons from the Desktop

Post#2 by ncmprhnsbl » 04 Sep 2024, 01:19

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)
Forum Rules : https://forum.porteus.org/viewtopic.php?f=35&t=44

roro
Black ninja
Black ninja
Posts: 74
Joined: 04 Aug 2022, 08:41
Distribution: Porteus 5.0 XFCE

Removing Drive Icons from the Desktop

Post#3 by roro » 05 Sep 2024, 09:22

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.

beny
Full of knowledge
Full of knowledge
Posts: 2194
Joined: 02 Jan 2011, 11:33
Location: italy

Removing Drive Icons from the Desktop

Post#4 by beny » 05 Sep 2024, 09:34

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,

roro
Black ninja
Black ninja
Posts: 74
Joined: 04 Aug 2022, 08:41
Distribution: Porteus 5.0 XFCE

Removing Drive Icons from the Desktop

Post#5 by roro » 05 Sep 2024, 13:33

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." !!

User avatar
Ed_P
Contributor
Contributor
Posts: 8574
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 5.01 ISO
Location: Western NY, USA

Removing Drive Icons from the Desktop

Post#6 by Ed_P » 05 Sep 2024, 13:51

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?

beny
Full of knowledge
Full of knowledge
Posts: 2194
Joined: 02 Jan 2011, 11:33
Location: italy

Removing Drive Icons from the Desktop

Post#7 by beny » 05 Sep 2024, 16:55

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

roro
Black ninja
Black ninja
Posts: 74
Joined: 04 Aug 2022, 08:41
Distribution: Porteus 5.0 XFCE

Removing Drive Icons from the Desktop

Post#8 by roro » 06 Sep 2024, 07:47

Hi beny,
"you have the list of the mounted device" ???
How do I get this list?

beny
Full of knowledge
Full of knowledge
Posts: 2194
Joined: 02 Jan 2011, 11:33
Location: italy

Removing Drive Icons from the Desktop

Post#9 by beny » 06 Sep 2024, 09:49

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

User avatar
Ed_P
Contributor
Contributor
Posts: 8574
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 5.01 ISO
Location: Western NY, USA

Removing Drive Icons from the Desktop

Post#10 by Ed_P » 06 Sep 2024, 19:08

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?

beny
Full of knowledge
Full of knowledge
Posts: 2194
Joined: 02 Jan 2011, 11:33
Location: italy

Removing Drive Icons from the Desktop

Post#11 by beny » 06 Sep 2024, 19:30

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

Kulle
Warlord
Warlord
Posts: 623
Joined: 28 Jan 2017, 10:39
Distribution: v4.0 64bit Xfce
Location: Berlin

Removing Drive Icons from the Desktop

Post#12 by Kulle » 07 Sep 2024, 14:08

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

User avatar
ncmprhnsbl
DEV Team
DEV Team
Posts: 4091
Joined: 20 Mar 2012, 03:42
Distribution: v5.0-64bit
Location: australia
Contact:

Removing Drive Icons from the Desktop

Post#13 by ncmprhnsbl » 08 Sep 2024, 00:31

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)
Forum Rules : https://forum.porteus.org/viewtopic.php?f=35&t=44

Kulle
Warlord
Warlord
Posts: 623
Joined: 28 Jan 2017, 10:39
Distribution: v4.0 64bit Xfce
Location: Berlin

Removing Drive Icons from the Desktop

Post#14 by Kulle » 08 Sep 2024, 07:42

Hi ncmprhnsbl,
I've now tried gio too.
No success
What roro wants is probably not possible?

beny
Full of knowledge
Full of knowledge
Posts: 2194
Joined: 02 Jan 2011, 11:33
Location: italy

Removing Drive Icons from the Desktop

Post#15 by beny » 08 Sep 2024, 14:29

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.

Post Reply