diff --git a/bin/desktop-items.in b/bin/desktop-items.in index 5e2d097f1c0e244e6b4591ac1308788a23513966..99b1f6d046aa48ee10dfbce63d13d09745cb7bed 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