
Empty Bin
Source (link to git-repo or to original if based on someone elses unmodified work):
Description:
This is a very short script that:
Checks whether your bin (current user's bin) is empty or not.
Notifies if already empty.
If not empty, asks if the bin has to be emptied.
Empties it if confirmed.
Notifies whether the emptying was completed or cancelled.
This may not be useful as a nautilus-script in itself, but I made it to be able to empty the bin quickly through a keyboard shortcut, but still having a confirmation window in case the command is invoked accidentally.
Dependencies:
- Gnome 2.22 (Hardy): the path to the current user's bin is different in earlier versions, so the script will not work with those.
- zenity
- notify-send (in Hardy repositories: the package to install is libnotify-bin, I'm not sure about other distros, but most of them have notify-send installed by default)
Note about translation:
I translated it from French into English. My translation might not sound as clean as natural English. Any suggestion for improvement is welcome. Translations in other languages are welcome as well.
Languages in Multilanguage pack:
English, French, Italian, Turkish
PS: This is my very first script.
For now the script does not actually check if the deletion was successful, I may add this feature later.
I may also add a Gutsy compatible version (for earlier Gnome versions) Last changelog:
Checks whether your bin (current user's bin) is empty or not.
Notifies if already empty.
If not empty, asks if the bin has to be emptied.
Empties it if confirmed.
Notifies whether the emptying was completed or cancelled.
This may not be useful as a nautilus-script in itself, but I made it to be able to empty the bin quickly through a keyboard shortcut, but still having a confirmation window in case the command is invoked accidentally.
Dependencies:
- Gnome 2.22 (Hardy): the path to the current user's bin is different in earlier versions, so the script will not work with those.
- zenity
- notify-send (in Hardy repositories: the package to install is libnotify-bin, I'm not sure about other distros, but most of them have notify-send installed by default)
Note about translation:
I translated it from French into English. My translation might not sound as clean as natural English. Any suggestion for improvement is welcome. Translations in other languages are welcome as well.
Languages in Multilanguage pack:
English, French, Italian, Turkish
PS: This is my very first script.
For now the script does not actually check if the deletion was successful, I may add this feature later.
I may also add a Gutsy compatible version (for earlier Gnome versions)
0.5:
-Initial Release
0.5.1:
-Added Italian translation by derma (thx)
0.6:
-Added item count feature.
0.6.5:
-Item count shows name of file to delete if there is only one in the bin, instead of the number of items.
-Added Turkish Translation by Mr-Idea (thx)
Ratings & Comments
0 Comments