LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 09-05-2005, 01:45 AM   #1
jong357
Senior Member
 
Registered: May 2003
Location: Columbus, OH
Distribution: DIYSlackware
Posts: 1,914

Rep: Reputation: 52
Deleted Trash icon in KDE 3.4.2


I built the latest KDE and was giving it a test run to see if everything worked ok. I switched back to Gnome and deleted the KDE Trash icon that was on my desktop because Gnome has traditionally been my WM of choice...

However, the couple hours that I used KDE, I was kinda taken with it... I'm thinking about switching possibly, but now I have no Trash icon on the desktop...

Could some kind soul cat their desktop file and post it here please? I assume it's maybe a "Trash.desktop" file or something similar? If not, does anyone have any ideas on how to get the little bugger back?

I've spent an hour or more tweaking out all the visual settings and don't feel like removing all KDE related stuff from my home directory and then having to fire up KDE again... I'm guessing it would be re-created that way but I don't really want to do that...

Right now I'm doing a rm -rf ~/.local/share/Trash/files/*

Thanks all...
 
Old 09-05-2005, 06:53 AM   #2
dracolich
Senior Member
 
Registered: Jul 2005
Distribution: Slackware
Posts: 1,173

Rep: Reputation: 47
Start KDE with another user or root and cp the ~/Desktop/Trash.desktop to your user's directory and adjust the ownership and permissions accordingly.
 
Old 09-05-2005, 10:17 AM   #3
ralvy
Member
 
Registered: Nov 2004
Posts: 36

Rep: Reputation: 15
When this has happened to me, I simply used Right Click to created a "Link to Location (URL)" on my desktop, using

Code:
trash:/
as its URL. That's all.
 
Old 09-05-2005, 02:22 PM   #4
jong357
Senior Member
 
Registered: May 2003
Location: Columbus, OH
Distribution: DIYSlackware
Posts: 1,914

Original Poster
Rep: Reputation: 52
Thanks guys. Both capital idea's.... Manually creating the file as ralvy suggests results in:
Code:
[Desktop Entry]
Encoding=UTF-8
Icon=trashcan_full
Type=Link
URL=trash:/
Which, gives you a constant "full" trash icon whether it's full or not. Adding another line with "EmptyIcon=trashcan_empty" will make it behave normally. This is the default .desktop file that KDE creates only without all the forign language names and comments:
Code:
[Desktop Entry]
Type=Link
URL=trash:/
Encoding=UTF-8
Icon=trashcan_full
EmptyIcon=trashcan_empty
Name=Trash
Comment=Contains removed files
 
Old 09-05-2005, 02:46 PM   #5
ralvy
Member
 
Registered: Nov 2004
Posts: 36

Rep: Reputation: 15
jong357,

I didn't know about this:

Code:
Icon=trashcan_full
EmptyIcon=trashcan_empty
That solves the problem of the icon never changing. Thanks!
 
Old 09-05-2005, 03:05 PM   #6
jong357
Senior Member
 
Registered: May 2003
Location: Columbus, OH
Distribution: DIYSlackware
Posts: 1,914

Original Poster
Rep: Reputation: 52
See, aren't you glad you posted....
 
  


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
I deleted my trash in KDE :( astrowill Linux - Software 3 06-08-2005 05:54 PM
Deleted Trash Icon By Mistake, What Now? zhuangshi Suse/Novell 4 03-26-2005 08:58 AM
Trash Can Icon in KDE OutKaster Linux - General 2 07-29-2004 06:28 AM
kde trash icon Menestrel Linux - Software 2 05-22-2004 05:11 PM
How could i remove the trash icon in KDE(I HAVE TWO) whepin Linux - Newbie 5 12-31-2002 04:35 AM


All times are GMT -5. The time now is 09:47 AM.

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