"Fossies" - the Fresh Open Source Software Archive

Member "pacpl-code/plugins/gnome/thunar/install-kde.sh" (22 Aug 2019, 567 Bytes) of package /linux/privat/pacpl-6.1.3.tar.bz2:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Bash source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file.

    1 #!/bin/bash
    2 #
    3 # Thunar Perl Audio Converter Context Menu Script
    4 
    5 CONFIG=${HOME}/.config/Thunar/uca.xml
    6 
    7 cp -v PACPL-Konvert /usr/bin/
    8 
    9 # Insert lines at end of Thunars $CONFIG
   10 sed -i 's/<\/actions>//' $CONFIG
   11 sed -i '/^$/d' $CONFIG
   12 echo "
   13 <action>
   14     <icon>/etc/pacpl/pacpl.png</icon>
   15     <name>Perl Audio Converter</name>
   16     <command>/usr/bin/PACPL-Konvert %F</command>
   17     <description>Linux Audio Converter / Tagger/ Ripper</description>
   18     <patterns>*</patterns>
   19     <directories/>
   20     <audio-files/>
   21     <video-files/>
   22 </action>
   23 </actions>
   24 " >> $CONFIG
   25 sed -i '/^$/d' $CONFIG