Xfce Forum

Sub domains
 

You are not logged in.

#1 2012-05-10 17:37:28

paiiou
Member
Registered: 2011-03-04
Posts: 18

[Solved] xfce4-panel.xml : how configure "actions"

I try to configure the panel with the file /etc/xdg/xfce4/xfconf/xfce-perchannel-xml/xfce4-panel.xml, to have a valid configuration for all the users.
The part concerning the actions is the following one:

  <property name="plugin-20" type="string" value="actions">
    <property name="items" type="array">
        <value type="string" value="-lock-screen"/>
        <value type="string" value="-switch-user"/>
        <value type="string" value="-separator"/>
        <value type="string" value="-suspend"/>
        <value type="string" value="-hibernate"/>
        <value type="string" value="-separator"/>
        <value type="string" value="+shutdown"/>
        <value type="string" value="+restart"/>
        <value type="string" value="+separator"/>
        <value type="string" value="+logout"/>
        <value type="string" value="-logout-dialog"/>
        <property name="appearance" type="uint" value="0"/>
        <property name="ask-confirmation" type="bool" value="false"/>
    </property>
    </property>

For this, I disconnect, in a console (Ctrl+Alt+F2) I modify the file and I erase the directory ~/.config/xfce4. Then I re-connect.

Everything works correctly, except the appearance which stays of the menu type instead of the type button, as asked.

Where is the error?

Offline

#2 2012-05-12 17:34:59

paiiou
Member
Registered: 2011-03-04
Posts: 18

Re: [Solved] xfce4-panel.xml : how configure "actions"

I answer myself.

The first line  </property> is misplaced
The correct syntax is:
  <property name="plugin-20" type="string" value="actions">
    <property name="items" type="array">
        <value type="string" value="-lock-screen"/>
        <value type="string" value="-switch-user"/>
        <value type="string" value="-separator"/>
        <value type="string" value="-suspend"/>
        <value type="string" value="-hibernate"/>
        <value type="string" value="-separator"/>
        <value type="string" value="+shutdown"/>
        <value type="string" value="+restart"/>
        <value type="string" value="+separator"/>
        <value type="string" value="+logout"/>
        <value type="string" value="-logout-dialog"/>
    </property>
    <property name="appearance" type="uint" value="0"/>
    <property name="ask-confirmation" type="bool" value="false"/>
  </property>

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.006 seconds, 8 queries executed - Memory usage: 517.13 KiB (Peak: 517.75 KiB) ]