View previous topic :: View next topic |
Author |
Message |
grant123 Veteran
Joined: 23 Mar 2005 Posts: 1080
|
Posted: Sat Mar 01, 2014 12:13 am Post subject: Scripting xfce4 panel changes |
|
|
I need to write a bash script that will consider which files in .config/xfce4/panel/launcher-*/*.desktop don't contain one of the following lines:
Code: | Name=Mozilla Firefox
Name=Qalculate!
Name=Thunar File Manager |
and remove a corresponding section of .config/xfce4/xfconf/xfce-perchannel-xml/xfce4-panel.xml like this:
Code: | <property name="plugin-xx" type="string" value="launcher">
<property name="items" type="array">
<value type="string" value="SPECIALNUMBER.desktop"/>
</property>
<property name="disable-tooltips" type="bool" value="false"/>
</property> |
where SPECIALNUMBER is equal to the wildcard portion of *.desktop from above. How can I do this? |
|
Back to top |
|
|
grant123 Veteran
Joined: 23 Mar 2005 Posts: 1080
|
Posted: Sat Mar 01, 2014 8:01 pm Post subject: |
|
|
Nevermind, I'm just going to write out new files instead. |
|
Back to top |
|
|
|