Author Topic: halevt with lxde, usb drive & thunar.  (Read 512 times)

Offline Village Idiot

  • Hero Member
  • *****
  • Posts: 2345
  • Have A Nice Day.
halevt with lxde, usb drive & thunar.
« on: September 18, 2010, 06:03:31 AM »
Hi.

I've got installed lxde and I've installed lxde-halevt-additions and I noticed it calls up pcmanfm when I plug in a USB 500gb HDD. On this particular install the user needs/prefers thunar. So I edited /etc/halevt/halevt.xml and changed the two mentions of pcmanfm to thunar.

Problem is now when I plug in the usb drive both thunar and pcmanfm start up. I cannot figure out how to make pcmanfm go away and leave me alone.  :(

Here is my /etc/halevt/halevt.xml

Code: [Select]
<?xml version="1.0" encoding="UTF-8"?>
<halevt:Configuration version="0.1" xmlns:halevt="http://www.environnement.ens.fr/perso/dumas/halevt.html">

<halevt:Device match="hal.volume.disc.has_data = true">
<halevt:Insertion exec="thunar"/>
</halevt:Device>

<halevt:Device match="hal.volume.disc.has_audio = true">
<halevt:Insertion exec="xmms /mnt/cdrom"/>
<halevt:Removal exec="killall xmms"/>
</halevt:Device>

<halevt:Device match="hal.volume.disc.has_video = true">
<halevt:Insertion exec="xine dvd://"/>
<halevt:Removal exec="killall xine"/>
</halevt:Device>

<halevt:Device match="hal.volume.disc.is_videodvd = true">
<halevt:Insertion exec="xine dvd://"/>
<halevt:Removal exec="killall xine"/>
</halevt:Device>

<halevt:Device match="hal.info.udi = /org/freedesktop/Hal/devices/volume_empty_cd_r">
<halevt:Insertion exec="gnomebaker"/>
</halevt:Device>

<halevt:Device match="hal.info.udi = /org/freedesktop/Hal/devices/volume_empty_cd_rw">
<halevt:Insertion exec="gnomebaker"/>
</halevt:Device>

<halevt:Device match="hal.info.udi = /org/freedesktop/Hal/devices/volume_empty_dvd">
<halevt:Insertion exec="gnomebaker"/>
</halevt:Device>

<halevt:Device match="hal.info.category = storage &amp; hal.storage.bus = usb">
            <halevt:Insertion exec="thunar"/>
          </halevt:Device>

<halevt:Device match="hal.info.category = camera">
            <halevt:Insertion exec="gtkam"/>
          </halevt:Device>

<halevt:Device match="hal.info.udi = /org/freedesktop/Hal/devices/computer_power_supply_ac_adapter_AC">
            <halevt:Property name="hal.ac_adapter.present">
            <halevt:Action value="true" exec="notify-send -t 5000 -i /usr/share/icons/Tango/scalable/status/info.svg 'The AC adapter is connected now ...'"/>
           </halevt:Property>
          </halevt:Device>

<halevt:Device match="hal.info.udi = /org/freedesktop/Hal/devices/computer_power_supply_ac_adapter_AC">
            <halevt:Property name="hal.ac_adapter.present">
            <halevt:Action value="false" exec="notify-send -t 5000 -i /usr/share/icons/Tango/scalable/status/info.svg 'The AC adapter was removed ...'"/>
           </halevt:Property>
          </halevt:Device>

</halevt:Configuration>


 :)
$ fortune
No Microsoft products were used in any way for the creation of this message.
If you are using a Microsoft product to view it, BEWARE! - I'm not
responsible for any harm you might encounter as a result.