Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Every partition has a desktop icon
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
cwr
Veteran
Veteran


Joined: 17 Dec 2005
Posts: 1969

PostPosted: Thu Jul 10, 2008 9:20 am    Post subject: Every partition has a desktop icon Reply with quote

Having (partially) upgraded to 2008.0, Gnome 2.20, I now find that every partition
on both hardrives has an automatically generated desktop icon. My guess is that
it's something to do with the default Hal or Dbus settings, but I can't find any way
to turn it off. It makes the Gnome desktop pretty useless, so someone must have
found a solution. Anyone know what it is?

Thanks - Will
Back to top
View user's profile Send private message
Clad in Sky
l33t
l33t


Joined: 04 May 2007
Posts: 888
Location: Germany

PostPosted: Thu Jul 10, 2008 12:32 pm    Post subject: Reply with quote

I'd be interested as well. I only have one unwanted partition that comes up, but I don't even want that one.
Back to top
View user's profile Send private message
Miranda
n00b
n00b


Joined: 11 Jul 2008
Posts: 4

PostPosted: Fri Jul 11, 2008 9:26 am    Post subject: Reply with quote

Save the following as /usr/share/hal/fdi/policy/10osvendor/99-redhat-storage-policy-fixed-drives.fdi

Code:
<?xml version="1.0" encoding="UTF-8"?> <!-- -*- SGML -*- -->

<deviceinfo version="0.2">
<device>
  <match key="@block.storage_device:storage.hotpluggable" bool="false">
    <match key="@block.storage_device:storage.removable" bool="false">
      <merge key="volume.ignore" type="bool">true</merge>
    </match>
  </match>
</device>
</deviceinfo>


An alternative solution is to disable apps/nautilus/desktop/volumes_visible using gconf-editor, but this also disables icons for cd, dvd, usb-memory, etc.
Back to top
View user's profile Send private message
cwr
Veteran
Veteran


Joined: 17 Dec 2005
Posts: 1969

PostPosted: Fri Jul 11, 2008 9:33 am    Post subject: Reply with quote

Thanks, I'll give it a try.

Will

EDIT:

The gconf setting works, but the Hal script doesn't appear to. I've doubled checked
the wording, so I'm pretty sure I entered it correctly. With the gconf flag cleared
USB devices still automount and auto-open (contrary to Gnome's local desktop
settings) but don't appear on the desktop. I can't check CDs, since Gnome is
running on an HD in the CD drive bay ...

Is there any fairly clear documentation on Hal setups, preferably with examples?
All the stuff I can find is way over my head.
Back to top
View user's profile Send private message
juniper
l33t
l33t


Joined: 22 Oct 2004
Posts: 944
Location: we the north

PostPosted: Fri Jul 11, 2008 5:55 pm    Post subject: Reply with quote

i think you have to replace "block.storage.device" with something sensible. yes, this is stupid.
Back to top
View user's profile Send private message
Miranda
n00b
n00b


Joined: 11 Jul 2008
Posts: 4

PostPosted: Fri Jul 11, 2008 7:41 pm    Post subject: Reply with quote

Hmm... That worked for me some time ago, but now I removed the script and I do not get any icons anyway.

Perhaps this will work for newer hal versions:
http://forums.fedoraforum.org/forum/showpost.php?p=1023202&postcount=82

Perhaps the latest hal (or gnome) versions (~amd64/~x86) in portage doesn't have this problem at all?
Back to top
View user's profile Send private message
cwr
Veteran
Veteran


Joined: 17 Dec 2005
Posts: 1969

PostPosted: Fri Jul 11, 2008 11:29 pm    Post subject: Reply with quote

I seem to have at least partly suppressed the problem by putting
the following two files in /etc/hal/fdi/policy. I haven't worked out
exactly what HAL is doing, so there's some (a lot of?) overlap between
the two policies. However, it seems to keep the desktop uncluttered,
so I've added the files below as a basis for further tinkering.

File: 20-storage-policy-unused-partitions.fdi

<?xml version="1.0" encoding="UTF-8"?>
<deviceinfo version="0.1">
<device>
<!-- Ignore the /dev/hda partitions -->
<!-- The /dev/hdc partitions are handled by fstab -->
<match key="block.major" int="3">
<merge key="volume.ignore" type="bool">true</merge>
</match>
</device>
</deviceinfo>

File: 50-storage-policy-fixed-drives.fdi

<?xml version="1.0" encoding="UTF-8"?>
<deviceinfo version="0.1">
<device>
<match key="@block.storage_device:storage.hotpluggable" bool="false">
<match key="@block.storage_device:storage.removable" bool="false">
<merge key="volume.ignore" type="bool">true</merge>
</match>
</match>
</device>
</deviceinfo>

Will
Back to top
View user's profile Send private message
timeBandit
Bodhisattva
Bodhisattva


Joined: 31 Dec 2004
Posts: 2719
Location: here, there or in transit

PostPosted: Wed Jan 21, 2009 4:56 pm    Post subject: Reply with quote

Miranda wrote:
Save the following as /usr/share/hal/fdi/policy/10osvendor/99-redhat-storage-policy-fixed-drives.fdi
Code:
<?xml version="1.0" encoding="UTF-8"?> <!-- -*- SGML -*- -->

<deviceinfo version="0.2">
<device>
  <match key="@block.storage_device:storage.hotpluggable" bool="false">
    <match key="@block.storage_device:storage.removable" bool="false">
      <merge key="volume.ignore" type="bool">true</merge>
    </match>
  </match>
</device>
</deviceinfo>

As noted above by cwr, the correct location for this file (since it is a local preference) is /etc/hal/fdi/policy.
_________________
Plants are pithy, brooks tend to babble--I'm content to lie between them.
Super-short f.g.o checklist: Search first, strip comments, mark solved, help others.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum