/usr/share/kpackage/genericqml/org.kde.plasma.themeexplorer/contents/code/openInEditor.sh is in plasma-sdk 5.8.6-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | #!/bin/sh
if [ $# -ne 1 ];
then echo Usage: $0 file.svgz
exit 1
fi
if [ ! -f "$1" ]; then
echo "you must specify a valid svg"
exit 1
fi
inkscape "$1"
file="${1%.*}"
mv "$1" "$file.svg.gz"
gunzip "$file.svg.gz"
echo Processing "$file"
/usr/bin/perl -p -i -e "s/color:#[^;]*;fill:currentColor/fill:currentColor/g" "$file.svg"
gzip "$file.svg"
mv "$file.svg.gz" "$file.svgz"
|