other problem please help me

roldan LG mr_hyde_rlg at yahoo.es
Wed Apr 28 22:56:21 CEST 2004


i create a generic xfce4rc with all the applications
that the user can use, but some times i need that the
user don see some of the applicatios so i resolve this
just commenting (u know <!-- -->) the gropus of
application and do a little program to uncomment the
applications that the user can use the generic xfce4rc
looks this way:


<?xml version="1.0"?>
<Xfce>
  <Panel orientation="0" layer="0" size="1"
popupposition="1" icontheme="Curve" groups="6">
    <Position x="272" y="726" screenwidth="1024"
screenheight="768"/>
  </Panel>
  <Groups>
<!-- internet_begin
    <Group>
      <Popup/>
      <Control id="-2" popup="0">
        <Command term="0" sn="0">mozilla
-splash</Command>
        <Tooltip>Mozilla Web Browser</Tooltip>
        <Icon id="7"/>
      </Control>
    </Group>
internet_end -->
<!-- games_begin
    <Group>
      <Popup>
        <Item>
          <Caption/>
          <Command term="0" sn="0"/>
          <Icon id="0"/>
        </Item>
      </Popup>
      <Control id="-2" popup="1">
        <Command term="0" sn="0"/>
        <Tooltip>Juegos</Tooltip>
        <Icon id="4"/>
      </Control>
    </Group>
games_end -->
<!-- oficina_begin
    <Group>
      <Popup>
        <Item>
          <Caption>Draw</Caption>
          <Command term="0"
sn="0">/usr/bin/oodraw</Command>
          <Icon
id="-1">/usr/lib/openoffice/share/icons/ooo_draw.png</Icon>
        </Item>
        <Item>
          <Caption>PowerPoint</Caption>
          <Command term="0"
sn="0">/usr/bin/ooimpress</Command>
          <Icon
id="-1">/usr/lib/openoffice/share/icons/ooo_impress.png</Icon>
        </Item>
        <Item>
          <Caption>Excel</Caption>
          <Command term="0"
sn="0">/usr/bin/oocalc</Command>
          <Icon
id="-1">/usr/lib/openoffice/share/icons/ooo_calc.png</Icon>
        </Item>
        <Item>
          <Caption>Word</Caption>
          <Command term="0"
sn="0">/usr/bin/oowriter</Command>
          <Icon
id="-1">/usr/lib/openoffice/share/icons/ooo_writer.png</Icon>
        </Item>
      </Popup>
      <Control id="-2" popup="1">
        <Command term="0" sn="0"/>
        <Tooltip>Open Office</Tooltip>
        <Icon id="10"/>
      </Control>
    </Group>
oficina_end -->
    <Group>
      <Popup/>
      <Control id="-1" filename="libseparator.so"/>
    </Group>
    <Group>
      <Popup/>
      <Control id="-1" filename="libpager.so"/>
    </Group>
    <Group>
      <Popup/>
      <Control id="-1" filename="libseparator.so"/>
    </Group>
    <Group>
      <Popup/>
      <Control id="-1" filename="libsystembuttons.so"
button1="2" button2="1" showtwo="1"/>
    </Group>
    <Group>
      <Popup/>
      <Control id="-1" filename="libseparator.so"/>
    </Group>
    <Group>
      <Popup/>
      <Control id="-1" filename="libclock.so">
        <XfceClock Clock_type="2" Toggle_military="0"
Toggle_am_pm="1" Toggle_secs="0"/>
      </Control>
    </Group>
  </Groups>
</Xfce>


and for example the result of the program could be:


<?xml version="1.0"?>
<Xfce>
  <Panel orientation="0" layer="0" size="1"
popupposition="1" icontheme="Curve" groups="8">
    <Position x="272" y="726" screenwidth="1024"
screenheight="768"/>
  </Panel>
  <Groups>
<!-- internet_begin -->
    <Group>
      <Popup/>
      <Control id="-2" popup="0">
        <Command term="0" sn="0">mozilla
-splash</Command>
        <Tooltip>Mozilla Web Browser</Tooltip>
        <Icon id="7"/>
      </Control>
    </Group>
<!-- internet_end -->
<!-- games_begin
    <Group>
      <Popup>
        <Item>
          <Caption/>
          <Command term="0" sn="0"/>
          <Icon id="0"/>
        </Item>
      </Popup>
      <Control id="-2" popup="1">
        <Command term="0" sn="0"/>
        <Tooltip>Juegos</Tooltip>
        <Icon id="4"/>
      </Control>
    </Group>
games_end -->
<!-- oficina_begin -->
    <Group>
      <Popup>
        <Item>
          <Caption>Draw</Caption>
          <Command term="0"
sn="0">/usr/bin/oodraw</Command>
          <Icon
id="-1">/usr/lib/openoffice/share/icons/ooo_draw.png</Icon>
        </Item>
        <Item>
          <Caption>PowerPoint</Caption>
          <Command term="0"
sn="0">/usr/bin/ooimpress</Command>
          <Icon
id="-1">/usr/lib/openoffice/share/icons/ooo_impress.png</Icon>
        </Item>
        <Item>
          <Caption>Excel</Caption>
          <Command term="0"
sn="0">/usr/bin/oocalc</Command>
          <Icon
id="-1">/usr/lib/openoffice/share/icons/ooo_calc.png</Icon>
        </Item>
        <Item>
          <Caption>Word</Caption>
          <Command term="0"
sn="0">/usr/bin/oowriter</Command>
          <Icon
id="-1">/usr/lib/openoffice/share/icons/ooo_writer.png</Icon>
        </Item>
      </Popup>
      <Control id="-2" popup="1">
        <Command term="0" sn="0"/>
        <Tooltip>Open Office</Tooltip>
        <Icon id="10"/>
      </Control>
    </Group>
<!-- oficina_end -->
    <Group>
      <Popup/>
      <Control id="-1" filename="libseparator.so"/>
    </Group>
    <Group>
      <Popup/>
      <Control id="-1" filename="libpager.so"/>
    </Group>
    <Group>
      <Popup/>
      <Control id="-1" filename="libseparator.so"/>
    </Group>
    <Group>
      <Popup/>
      <Control id="-1" filename="libsystembuttons.so"
button1="2" button2="1" showtwo="1"/>
    </Group>
    <Group>
      <Popup/>
      <Control id="-1" filename="libseparator.so"/>
    </Group>
    <Group>
      <Popup/>
      <Control id="-1" filename="libclock.so">
        <XfceClock Clock_type="2" Toggle_military="0"
Toggle_am_pm="1" Toggle_secs="0"/>
      </Control>
    </Group>
  </Groups>
</Xfce>

but i facts this isn't workin fine. if i uncomment a
group then the other commenteds appears as empty
launchers in the panel; wy this is happenig, i think
that xml interprets wrong the comments couse they
can't been displayed or i'm wrong??????
please answer me as soon as u can i apreciate any help
u can give to me



		
______________________________________________________________________
Correo Yahoo! - 6MB, más protección contra el spam ¡Gratis!
http://correo.yahoo.es



More information about the Xfce4-dev mailing list