You are not logged in.

#1 2007-05-09 01:24:02

miyamoto
Member
Registered: 2007-05-09
Posts: 4

[Gnome] Removing mounted hard drive icons from desktop

Hi all,

I am new to Arch, and still semi new to linux in general (I have installed various distros over the years and would play around in my spare time. At one time (way back in the day) me and "mi padre" were running a web server and DHCP/Router Box using Redhat 5 and then 6).  I have everything pretty much setup and running to my liking, except, I cannot figure out how to remove these pesky icons from my desktop.  I have 7 NTFS partitions that I have auto-mounting with ntfs-3g in my fstab.  Anyone point me in the right direction?

Ohh, and is there a way to configure the default file browser (is it nautilus?) to open folders in the same window instead of popping up a new one?  If not, what are some alternatives?

Thanks,
Chris

P.S.  I am amazed at how smooth this install went, piece of cake!  I got everything up and running with Gnome + Beryl + Emerald in a jiffy.

Offline

#2 2007-05-09 03:22:53

karmapolice
Member
Registered: 2007-01-31
Posts: 113

Re: [Gnome] Removing mounted hard drive icons from desktop

Open gcnof-editor
/apps/nautilus/desktop/

uncheck volumes_visible

Offline

#3 2007-05-09 03:28:07

Phrodo_00
Member
From: Seattle, WA
Registered: 2006-04-09
Posts: 342
Website

Re: [Gnome] Removing mounted hard drive icons from desktop

karmapolice wrote:

Open gcnof-editor
/apps/nautilus/desktop/

uncheck volumes_visible

either that or put this in a file in /etc/hal/fdi/policy

<?xml version="1.0" encoding="UTF-8"?> 
<deviceinfo version="0.2">
 <device>
   <match key="volume.fsusage" string="filesystem">
<merge key="volume.ignore" type="bool">true</merge>
       <match key="@block.storage_device:storage.removable" bool="true">
               <merge key="volume.ignore" type="bool">false</merge>
                <merge key="storage.policy.should_mount" type="bool">true</merge>
       </match>
   </match>
 </device>
</deviceinfo>

to hide just the disks but not the removable ones

EDIT: and abou the filemanager, the options is in nautilus' preferences, it says something like always use browser or something like that.

Last edited by Phrodo_00 (2007-05-09 03:29:06)

Offline

#4 2007-05-11 23:03:57

miyamoto
Member
Registered: 2007-05-09
Posts: 4

Re: [Gnome] Removing mounted hard drive icons from desktop

Thank you!

I will give it a try later when I get home.

Offline

#5 2007-05-12 11:57:35

albLinux
Member
Registered: 2007-04-24
Posts: 56

Re: [Gnome] Removing mounted hard drive icons from desktop

Hi

How can  I set that NFS Shares are Visible on the Desktop?

thx

Offline

#6 2007-05-13 17:35:36

Crooksey
Member
From: UK ~
Registered: 2006-08-14
Posts: 415
Website

Re: [Gnome] Removing mounted hard drive icons from desktop

albLinux wrote:

Hi

How can  I set that NFS Shares are Visible on the Desktop?

thx

Should be the reverse as previously described via nautalis.


Arch Linux since 2006
Python Web Developer + Sys Admin (Gentoo/BSD)

Offline

#7 2007-05-13 19:10:17

Phrodo_00
Member
From: Seattle, WA
Registered: 2006-04-09
Posts: 342
Website

Re: [Gnome] Removing mounted hard drive icons from desktop

albLinux wrote:

Hi

How can  I set that NFS Shares are Visible on the Desktop?

thx

dunno, look at some disctintive property of the filesystem in the hal info thingy and make a rule no to ignore them.

EDIT:I wasn't in the linux system, now I'm. I don't know how the nfs filesystem is called like when mounting, if it isn't then change it. Also, I don't know if this works as it's the first hal rule I've written:

<?xml version="1.0" encoding="UTF-8"?> 
<deviceinfo version="0.2">
 <device>
   <match key="volume.fsusage" string="filesystem">
       <merge key="volume.ignore" type="bool">true</merge>
       <match key="@block.storage_device:storage.removable" bool="true">
               <merge key="volume.ignore" type="bool">false</merge>
               <merge key="storage.policy.should_mount" type="bool">true</merge>
       </match>
       <match key="volume.fstype" string="nfs">
               <merge key="volume.ignore" type="bool">false</merge>
               <merge key="storage.policy.should_mount" type="bool">true</merge>
       </match>
   </match>
 </device>
</deviceinfo>

Last edited by Phrodo_00 (2007-05-13 21:41:22)

Offline

#8 2007-05-14 02:35:46

Axis
Member
Registered: 2007-05-13
Posts: 60

Re: [Gnome] Removing mounted hard drive icons from desktop

An option could be to mount the drives in a different folder. For example with Ubuntu, they showed up on the desktop while mounted in /media so I mounted them in /mnt, they didn't show up anymore but still mounted.

As for nautilus, go to edit > preferences > "Behavior" tab and check "Always open in browser windows"

Offline

#9 2007-05-14 12:42:16

albLinux
Member
Registered: 2007-04-24
Posts: 56

Re: [Gnome] Removing mounted hard drive icons from desktop

Phrodo_00 wrote:
albLinux wrote:

Hi

How can  I set that NFS Shares are Visible on the Desktop?

thx

dunno, look at some disctintive property of the filesystem in the hal info thingy and make a rule no to ignore them.

EDIT:I wasn't in the linux system, now I'm. I don't know how the nfs filesystem is called like when mounting, if it isn't then change it. Also, I don't know if this works as it's the first hal rule I've written:

<?xml version="1.0" encoding="UTF-8"?> 
<deviceinfo version="0.2">
 <device>
   <match key="volume.fsusage" string="filesystem">
       <merge key="volume.ignore" type="bool">true</merge>
       <match key="@block.storage_device:storage.removable" bool="true">
               <merge key="volume.ignore" type="bool">false</merge>
               <merge key="storage.policy.should_mount" type="bool">true</merge>
       </match>
       <match key="volume.fstype" string="nfs">
               <merge key="volume.ignore" type="bool">false</merge>
               <merge key="storage.policy.should_mount" type="bool">true</merge>
       </match>
   </match>
 </device>
</deviceinfo>

The file what should be called does it have some special premisson or not?
Because it doesnt work

thx

Last edited by albLinux (2007-05-14 12:51:50)

Offline

#10 2007-05-14 13:46:54

Phrodo_00
Member
From: Seattle, WA
Registered: 2006-04-09
Posts: 342
Website

Re: [Gnome] Removing mounted hard drive icons from desktop

it should be put instead of the other one I told you, I don't think it needs any permission besides reading for the hal group or something.
Let me get home (like in 8 hours or something, I just got to the uni) and try it with smb shares.

Offline

#11 2007-05-14 13:48:52

Axis
Member
Registered: 2007-05-13
Posts: 60

Re: [Gnome] Removing mounted hard drive icons from desktop

Axis wrote:

An option could be to mount the drives in a different folder. For example with Ubuntu, they showed up on the desktop while mounted in /media so I mounted them in /mnt, they didn't show up anymore but still mounted.

Hm, I just tried this and it didn't work for me, so never mind that. Seemed to work on Debian as well.

Offline

Board footer

Powered by FluxBB