LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices

Reply
 
Search this Thread
Old 04-20-2011, 08:33 PM   #1
FreakboY
Member
 
Registered: Jun 2002
Location: TX, USA
Distribution: Slackware 13 64bits
Posts: 374

Rep: Reputation: 31
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.
 
Old 04-20-2011, 11:21 PM   #2
chrisretusn
Member
 
Registered: Dec 2005
Location: Philippines
Distribution: Slackware
Posts: 479

Rep: Reputation: Disabled
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.

Last edited by chrisretusn; 04-20-2011 at 11:24 PM.
 
Old 04-20-2011, 11:24 PM   #3
FreakboY
Member
 
Registered: Jun 2002
Location: TX, USA
Distribution: Slackware 13 64bits
Posts: 374

Original Poster
Rep: Reputation: 31
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...
 
Old 04-20-2011, 11:40 PM   #4
chrisretusn
Member
 
Registered: Dec 2005
Location: Philippines
Distribution: Slackware
Posts: 479

Rep: Reputation: Disabled
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.
 
Old 04-21-2011, 12:18 AM   #5
chrisretusn
Member
 
Registered: Dec 2005
Location: Philippines
Distribution: Slackware
Posts: 479

Rep: Reputation: Disabled
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.)
 
Old 04-21-2011, 12:21 AM   #6
FreakboY
Member
 
Registered: Jun 2002
Location: TX, USA
Distribution: Slackware 13 64bits
Posts: 374

Original Poster
Rep: Reputation: 31
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
 
Old 04-21-2011, 12:31 AM   #7
chrisretusn
Member
 
Registered: Dec 2005
Location: Philippines
Distribution: Slackware
Posts: 479

Rep: Reputation: Disabled
You are welcome. You should mark this thread as Solved.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I disable "shutdown" and "restart" options in KDE logout screen for all users? maxgsp Linux - Distributions 1 12-12-2008 03:18 PM
LXer: Displaying "MyComputer", "Trash", "Network Servers" Icons On A GNOME Desktop LXer Syndicated Linux News 0 04-02-2007 08:31 AM
Problem with "move to trash" arachn1d Linux - Software 0 03-21-2006 10:41 PM
About gthumb "Move to Trash" feature koyi Linux - Software 0 11-29-2004 08:17 PM
gnome 2.6, ask before "move to trash" linuxzouk Linux - Newbie 2 06-08-2004 12:46 AM


All times are GMT -5. The time now is 11:59 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration