From 687e9fdf075de00316e9de1ac8f1f828dbd6c17c Mon Sep 17 00:00:00 2001 From: Mubashshir Date: Wed, 4 Jan 2023 23:13:08 +0600 Subject: patch/refresh: Apply patch and restart thunar/xfdesktop Signed-off-by: Mubashshir --- patch/thunar-refresh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/patch/thunar-refresh b/patch/thunar-refresh index b48723f..f17a396 100755 --- a/patch/thunar-refresh +++ b/patch/thunar-refresh @@ -10,9 +10,9 @@ # # -xml ed -L \ +sudo xmlstarlet ed -L \ -i '/actions/action[1]' -t elem -n action \ - -s '/actions/action[1]' -t elem -n icon -v view-refresh \ + -s '/actions/action[1]' -t elem -n icon -v view-refresh \ -s '/actions/action[1]' -t elem -n patterns -v '*' \ -s '/actions/action[1]' -t elem -n range \ -s '/actions/action[1]' -t elem -n name -v Refresh \ @@ -20,3 +20,6 @@ xml ed -L \ -s '/actions/action[1]' -t elem -n description -v 'Refresh current content' \ -s '/actions/action[1]' -t elem -n directories \ /etc/xdg/Thunar/uca.xml +rm -f ~/.config/Thunar/uca.xml +thunar -q +pkill xfdesktop -- cgit v1.2.3