From a11e28b1043630f90aae59cb1439fe5804d73a4c Mon Sep 17 00:00:00 2001 From: Bernhard Landauer Date: Sun, 20 Mar 2016 23:35:47 +0100 Subject: [PATCH] fix https://github.com/manjaro/manjaro-tools-iso-profiles/issues/142 --- bin/desktop-items.in | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/bin/desktop-items.in b/bin/desktop-items.in index 5e2d097..99b1f6d 100755 --- a/bin/desktop-items.in +++ b/bin/desktop-items.in @@ -33,6 +33,15 @@ if [[ -f "$src/hexchat.desktop" ]]; then "$xdg/hexchat.desktop" fi +# workaround for glib trash bug (https://bugzilla.gnome.org/show_bug.cgi?id=748248) + +userid=$(id -u $USER) + +if [ ! -d "/.Trash-$userid" ]; then + sudo mkdir -p /.Trash-$userid/{expunged,files,info} + sudo chown -R $userid /.Trash-$userid +fi + # support sonar if [[ -f "/usr/share/sonar/keyboard_shortcuts.txt" ]]; then -- GitLab