[Bug 228369] Re: add an option to autodelete items from trash:/ after a specified span of time

2019-02-07 Thread Sebastien Bacher
** Package changed: nautilus (Ubuntu) => gnome-settings-daemon (Ubuntu)

-- 
You received this bug notification because you are a member of Kubuntu
Bugs, which is subscribed to kdebase in Ubuntu.
https://bugs.launchpad.net/bugs/228369

Title:
  add an option to autodelete items from trash:/ after a specified span
  of time

To manage notifications about this bug go to:
https://bugs.launchpad.net/kde-baseapps/+bug/228369/+subscriptions

-- 
kubuntu-bugs mailing list
kubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/kubuntu-bugs


[Bug 228369] Re: add an option to autodelete items from trash:/ after a specified span of time

2011-02-27 Thread Bug Watch Updater
** Changed in: kdebase
   Importance: Unknown => Wishlist

-- 
You received this bug notification because you are a member of Kubuntu
Bugs, which is subscribed to kdebase in ubuntu.
https://bugs.launchpad.net/bugs/228369

Title:
  add an option to autodelete items from trash:/ after a specified span
  of time

-- 
kubuntu-bugs mailing list
kubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/kubuntu-bugs


[Bug 228369] Re: add an option to autodelete items from trash:/ after a specified span of time

2008-05-11 Thread Ritesh Raj Sarraf
[EMAIL PROTECTED]:~$ cat .kde/shutdown/TrashReaper
#!/bin/bash

#Removes old files from the KDE trash folder (KDE >= 3.4)
#(c) 2005 Bram Schoenmakers


# http://bram85.blogspot.com/2005/11/only-good-for-trash-bin.html

EXPIREDATE=`date -d'30 days ago' +%Y%m%d`
TRASHDIR=~/.local/share/Trash


cd $TRASHDIR/info

for ITEM in *.trashinfo; do
  ITEMNAME=`echo "$ITEM" | sed -e 's/.trashinfo//'`

  #extract date
  TRASHDATE=`grep DeletionDate "$ITEM" | sed -e 
's/^.*\(\)-\(..\)-\(..\)T.*$/\1\2\3/'`


  if [ $TRASHDATE -le $EXPIREDATE ]; then
rm -rf "$TRASHDIR/files/$ITEMNAME"
rm -f "$TRASHDIR/info/$ITEM"
#echo "$TRASHDIR/files/$ITEMNAME"
#echo "$TRASHDIR/info/$ITEM"
  fi
done
[EMAIL PROTECTED]:~$ crontab -l
# m h  dom mon dow   command
@daily  ~/.kde/shutdown/TrashReaper

With this script in ~/.kde/shutdown and a cronjob to run daily, Trash
auto-delete can be accomplished.

-- 
add an option to autodelete items from trash:/ after a specified span of time
https://bugs.launchpad.net/bugs/228369
You received this bug notification because you are a member of Kubuntu
Team, which is subscribed to kdebase in ubuntu.

-- 
kubuntu-bugs mailing list
kubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/kubuntu-bugs


[Bug 228369] Re: add an option to autodelete items from trash:/ after a specified span of time

2008-05-11 Thread Ritesh Raj Sarraf
Thank you. The upstream bug reports are helpful.

Both the bug reports are quite old but with no fix downstream yet. So
I'm not sure when we could see this in [K]ubuntu.

I hope we all are aware of tmpreaper. It cleans files/folders in /tmp based on 
how old they are.
Probably, till it gets fixed, I'll use something similar to it. TrashReaper?

Should a TrashReaper kind of approach be proposed for the next release?

-- 
add an option to autodelete items from trash:/ after a specified span of time
https://bugs.launchpad.net/bugs/228369
You received this bug notification because you are a member of Kubuntu
Team, which is subscribed to kdebase in ubuntu.

-- 
kubuntu-bugs mailing list
kubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/kubuntu-bugs