summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLibravatar Mubashshir <ahmubashshir@gmail.com>2023-01-04 23:13:08 +0600
committerLibravatar Mubashshir <ahmubashshir@gmail.com>2023-01-04 23:15:10 +0600
commit687e9fdf075de00316e9de1ac8f1f828dbd6c17c (patch)
tree43469ac305c7ee8b97ac881917d042605842a851
parentfb12eb325c5ec906ce0bba56c555df93da7d9c03 (diff)
downloadpatches-687e9fdf075de00316e9de1ac8f1f828dbd6c17c.tar.gz
patches-687e9fdf075de00316e9de1ac8f1f828dbd6c17c.zip
patch/refresh: Apply patch and restart thunar/xfdesktop
Signed-off-by: Mubashshir <ahmubashshir@gmail.com>
-rwxr-xr-xpatch/thunar-refresh7
1 files 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 @@
# <directories/>
#</action>
-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