--- /dev/null
+[Trigger]
+Type = Path
+Operation = Install
+Operation = Upgrade
+Operation = Remove
+Target = usr/share/lxde/images/logout-banner.png
+
+[Action]
+Description = Optimizing LXDE logo ...
+When = PostTransaction
+Depends=lxde-common
+Exec = bash /usr/share/libalpm/scripts/alterlinux-lxde-logo
+NeedsTargets
--- /dev/null
+#!/usr/bin/env bash
+
+# Delete file only if file exists
+# remove <file1> <file2> ...
+function remove () {
+ local _list
+ local _file
+ _list=($(echo "$@"))
+ for _file in "${_list[@]}"; do
+ if [[ -f ${_file} ]]; then
+ rm -f "${_file}"
+ elif [[ -d ${_file} ]]; then
+ rm -rf "${_file}"
+ fi
+ done
+}
+
+
+# Replace wlogo.
+remove "/usr/share/lxde/images/logout-banner.png"
+ln -s "/usr/share/lxde/images/alterlinux.png" "/usr/share/lxde/images/logout-banner.png"
+chmod 644 "/usr/share/lxde/images/logout-banner.png"
\ No newline at end of file