Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Scripting xfce4 panel changes
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
grant123
l33t
l33t


Joined: 23 Mar 2005
Posts: 803

PostPosted: Sat Mar 01, 2014 12:13 am    Post subject: Scripting xfce4 panel changes Reply with quote

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
View user's profile Send private message
grant123
l33t
l33t


Joined: 23 Mar 2005
Posts: 803

PostPosted: Sat Mar 01, 2014 8:01 pm    Post subject: Reply with quote

Nevermind, I'm just going to write out new files instead.
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