LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Desktop (https://www.linuxquestions.org/questions/linux-desktop-74/)
-   -   How do you disable the "move to trash" function in KDE 4.5.5 (https://www.linuxquestions.org/questions/linux-desktop-74/how-do-you-disable-the-move-to-trash-function-in-kde-4-5-5-a-876232/)

FreakboY 04-20-2011 08:33 PM

How do you disable the "move to trash" function in KDE 4.5.5
 
I would like to remove the option to send files to my trash bin... instead I want to delete files just like the rm command does... I want to be able to do this from all programs "Open/Save Dialog Boxes"


Thank you.

chrisretusn 04-20-2011 11:21 PM

I'm not sure about removing the option. How about adding a Delete function in addition to "Move to Trash"?

Under Configure Dolphin, General, Context Menu; check "Show 'Delete' command". This will add a Delete option to the context menu. The short-cut key for Delete by-the-way is <Shift-Del>.

As for having this available from all programs "Open/Save Dialog Boxes" will depend largely on the program using the Dolphin interface or it's own. Those that do use Dolphin for open/save dialogs will show the Delete option on the context menu.

FreakboY 04-20-2011 11:24 PM

yeah i don't use dolphin... i use the cli... i need in other programs like in VLC... i would like to delete videos that i dont want but i only get "move to trash" context menu... and dislike to have to erase my .local/share/Trash folder everytime... and no i do not want to create a script...

chrisretusn 04-20-2011 11:40 PM

One must assume you are using KDE and not the CLI when using VLC, which by-the-way, if you follow my directions you will find a "Delete" menu item on the contect menu when using VLC's file dialogs.

You can also change the settings for Trash to "Delete files older than 1 day", "Limit the maximum size" to 1%, and change "When limit is reached" to one of the delete options.

chrisretusn 04-21-2011 12:18 AM

One more additional option. I know you said you did not want to write a script, but jeepers all you need is this:
Code:

#!/bin/sh
rm -rf ~/.local/share/Trash

Then place it in ~/.kde/shutdown. This will "emtpy" the trash on exit from KDE back to the CLI (Assuming your are using a default runlevel 3.)

FreakboY 04-21-2011 12:21 AM

chrisretusn, awesome... that works... i didn't see that show delete button thing... that is exactly what i was looking for... i have a /etc/rc.d/rc.local_shutdown with that line of yours =)...


Thanks a lot chrisretusn.

pd. admins may erase this thread =P

chrisretusn 04-21-2011 12:31 AM

You are welcome. You should mark this thread as Solved.


All times are GMT -5. The time now is 01:45 AM.