/usr/sbin/design-desktop-tidy is in design-desktop 3.0.7.
This file is owned by root:root, with mode 0o755.
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 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 | #!/bin/sh
set -e;\
chroot /target apt-mark auto \
aptitude-common gvfs lightdm-gtk-greeter mr pulseaudio-utils xserver-xorg;\
_backup(){ set -e;\
if [ -e "$1" ]; then \
if [ -e "$1.orig" ]; then \
cp -a "$1" "$1.bak";\
else \
cp -a "$1" "$1.orig";\
fi;\
else \
touch "$1.orig";\
fi; };\
_backup_todir(){ set -e;\
dir="$''{2:-$(dirname "$1").bak}";\
[ -e "$dir" ] || mkdir -p "$dir";\
path="$dir/$(basename "$1")";\
if [ -e "$1" ]; then \
cp -fa "$1" "$path";\
else \
touch "$path";\
fi; };\
_clone(){ set -e;\
test -e "$1";\
_backup "$2";\
cp -fa "$1" "$2"; };\
_setline(){ set -e;\
_backup "$1";\
if [ $# = 3 ]; then \
sed -i -r \
-e "s!^#?($2)\$!$3!g" "$1";\
else \
sed -i -r \
-e "s!^#?($2)\$!\\1!g" "$1";\
fi; };\
_setappendline(){ set -e;\
if [ -e "$1" ] && egrep -q "^#?$2\$" "$1"; then \
_setline "$@";\
else \
_backup "$1";\
echo "$''{3:-$2}" >> "$1";\
fi; };\
_setvar(){ set -e;\
_backup "$1";\
sed -i -r \
-e "s!^#?($2)=.*!\\1=$3!" "$1"; };\
_setappendvar(){ set -e;\
if [ -e "$1" ] && egrep -q "^#?$2=" "$1"; then \
_setvar "$@";\
else \
_backup "$1";\
echo "$2=$3" >> "$1";\
fi; };\
cd /target/etc/xdg/xfce4/xfconf/xfce-perchannel-xml;\
_clone ../../panel/default.xml xfce4-panel.xml;\
sed -i -r \
-e 's,xfce4-appfinder,exo-mail-reader,' \
xfce4-panel.xml;\
_backup xfce4-session.xml;\
sed -i -r \
-e 's,(<property name="general"[^>]*>),\1\''n <property name="SaveOnExit" type="bool" value="false"/>,' \
xfce4-session.xml
|