You are not logged in.

#1 2006-12-15 05:46:58

Shagbag
Member
Registered: 2006-10-25
Posts: 259

I accidentally deleted my KDE Trash desktop icon [RESOLVED]

How do I create a new one/get the old one back?

Offline

#2 2006-12-15 06:34:43

lilsirecho
Veteran
Registered: 2003-10-24
Posts: 5,000

Re: I accidentally deleted my KDE Trash desktop icon [RESOLVED]

does it come back with a reboot?


Prediction...This year will be a very odd year!
Hard work does not kill people but why risk it: Charlie Mccarthy
A man is not complete until he is married..then..he is finished.
When ALL is lost, what can be found? Even bytes get lonely for a little bit!     X-ray confirms Iam spineless!

Offline

#3 2006-12-15 06:42:19

byte
Member
From: Düsseldorf (DE)
Registered: 2006-05-01
Posts: 2,046

Re: I accidentally deleted my KDE Trash desktop icon [RESOLVED]

Cool, a place to dump my trash wink

[Desktop Entry]
Comment=Contains removed files
EmptyIcon=trashcan_empty
Encoding=UTF-8
Icon=trashcan_full
Name=Trash
OnlyShowIn=KDE
Type=Link
URL=trash:/

Put that in ~/Desktop/trash.desktop.


1000

Offline

#4 2006-12-16 13:30:30

Shagbag
Member
Registered: 2006-10-25
Posts: 259

Re: I accidentally deleted my KDE Trash desktop icon [RESOLVED]

Thanks!

Offline

#5 2006-12-16 15:44:33

pelle.k
Member
From: Åre, Sweden (EU)
Registered: 2006-04-30
Posts: 667

Re: I accidentally deleted my KDE Trash desktop icon [RESOLVED]

Remeber that desktop icons are just either ordinary files, or launchers/desktop files. That means a "link to URL" shurcut in KDE, with a KIO slave as the URL (like media:/ smb:/ ) will give you a nice desktop icon to that location, also with the right .jpg/.png as well.


"Your beliefs can be like fences that surround you.
You must first see them or you will not even realize that you are not free, simply because you will not see beyond the fences.
They will represent the boundaries of your experience."

SETH / Jane Roberts

Offline

#6 2010-01-12 02:37:46

burafino
Member
From: London
Registered: 2009-12-07
Posts: 19
Website

Re: I accidentally deleted my KDE Trash desktop icon [RESOLVED]

byte wrote:

Cool, a place to dump my trash wink

[Desktop Entry]
Comment=Contains removed files
EmptyIcon=trashcan_empty
Encoding=UTF-8
Icon=trashcan_full
Name=Trash
OnlyShowIn=KDE
Type=Link
URL=trash:/

Put that in ~/Desktop/trash.desktop.

For KDE 4.3 with Oxygen icons the code should probably look like this (it does on my system):

[Desktop Entry]
Comment=Contains removed files
EmptyIcon=user-trash
Encoding=UTF-8
Icon=user-trash-full
Name=Trash
OnlyShowIn=KDE
Type=Link
URL=trash:/

Offline

#7 2010-01-12 02:49:06

burafino
Member
From: London
Registered: 2009-12-07
Posts: 19
Website

Re: I accidentally deleted my KDE Trash desktop icon [RESOLVED]

A complete trash.desktop with full international localisation support embedded looks like this (UTF-8):

[Desktop Entry]
Comment[en_GB]=Contains removed files
Comment=Contains removed files
Comment[ar]=تحوي الملفات المزالة
Comment[be@latin]=Zachoŭvaje vydalenyja fajły
Comment[be]=Утрымлівае выдаленыя файлы
Comment[bg]=Съдържа премахнати файлове
Comment[bn]=মুছে ফেলা ফাইল থাকে
Comment[bn_IN]=মুছে ফেলা ফাইল অন্তর্ভুক্ত রয়েছে
Comment[ca@valencia]=Conté els fitxers suprimits
Comment[ca]=Conté els fitxers suprimits
Comment[cs]=Obsahuje odstraněné soubory
Comment[csb]=Kònténer rëmniãtëch lopków
Comment[cy]=Yn cynnwys ffeiliau sydd wedi eu gwaredu
Comment[da]=Indeholder slettede filer
Comment[de]=Enthält weggeworfene Dateien
Comment[el]=Περιέχει τα αφαιρεμένα αρχεία
Comment[es]=Contiene los archivos eliminados
Comment[et]=Sisaldab eemaldatud faile
Comment[eu]=Kendutako fitxategiak ditu
Comment[fi]=Sisältää poistetut tiedostot
Comment[fr]=Contiens les fichiers effacés
Comment[fy]=Befetter fuortsmiten triemmen
Comment[ga]=Comhaid bhainte atá ann
Comment[gl]=Contén ficheiros eliminados
Comment[gu]=દૂર કરેલ ફાઇલ ધરાવે છે
Comment[he]=מכיל קבצים שהוסרו
Comment[hi]=मिटाई गई फ़ाइलों को रखता है
Comment[hne]=मेटाय फाइल ल रखथे
Comment[hr]=Sadrži izbrisane datoteke
Comment[hsb]=Tu so namakaja zničene dataje
Comment[hu]=Törölt fájlokat tartalmaz
Comment[is]=Inniheldur skrár sem hefur verið eytt
Comment[it]=Contiene i file cancellati
Comment[ja]=削除されたファイルを保管しています
Comment[ka]=შეიცავს წაშლილ ფაილებს
Comment[kk]=Өшірілген файлдар жататын орын
Comment[km]=មានឯកសារដែលបានយកចេញ
Comment[kn]=ತೆಗೆದು ಹಾಕಲಾದ ಕಡತಗಳನ್ನು ಹೊಂದಿದೆ
Comment[ko]=삭제된 파일 및 폴더가 있습니다
Comment[ku]=Di de pelên hatine rakirin jî hene
Comment[lt]=Čia yra ištrintos bylos
Comment[lv]=Satur izmestos failus
Comment[mai]=मेटाएल गेल फाइलसभक राखैत अछि
Comment[mk]=Содржи избришани датотеки
Comment[ml]=നീക്കം ചെയ്യപെട്ട ഫയലുകള് ഉല്പെടുന്നു
Comment[mr]=काढूण टाकलेले फाइल समाविष्टीत आहे
Comment[nb]=Inneholder filer som er fjernet
Comment[nds]=Bargt wegmaakt Dateien
Comment[nl]=Bevat de verwijderde bestanden
Comment[nn]=Inneheld sletta filer
Comment[or]=ଅପସାରିତ ଫାଇଲଗୁଡ଼ିକୁ ଧାରଣ କରିଥାଏ
Comment[pa]=ਹਟਾਈਆਂ ਫਾਇਲਾਂ ਰੱਖਦਾ ਹੈ
Comment[pl]=Zawiera usunięte pliki
Comment[pt]=Contém os ficheiros removidos
Comment[pt_BR]=Contém arquivos removidos
Comment[ro]=Conține fișierele șterse
Comment[ru]=Содержит удалённые файлы
Comment[se]=Dáppe leat eret váldon fiillat
Comment[si]=මකන ලද ගොනු ඇත
Comment[sk]=Obsahuje vymazané súbory
Comment[sl]=Vsebuje odstranjene datoteke
Comment[sr@latin]=Sadrži uklonjene fajlove
Comment[sr]=Садржи уклоњене фајлове
Comment[sv]=Innehåller borttagna filer
Comment[ta]=அகற்றப்பட்ட கோப்புகள் இருக்கிறது
Comment[te]=తీసివేసిన ఫైళ్ళను కలిగివుంటుంది
Comment[tg]=Дорои файлҳои несткардашуда
Comment[th]=บรรจุแฟ้มที่ถูกลบ
Comment[tr]=Silinen dosyaları içerir
Comment[uk]=Містить вилучені файли
Comment[uz@cyrillic]=Олиб ташланган файллардан иборат
Comment[uz]=Olib tashlangan fayllardan iborat
Comment[vi]=Chứa tập tin bị gỡ bỏ
Comment[wa]=I gn a dvins des fitchîs oistés
Comment[x-test]=xxContains removed filesxx
Comment[xh]=Iqulathe iifayile ezisusiweyo
Comment[zh_CN]=储存已删除的文件
Comment[zh_TW]=包含已移除的檔案
EmptyIcon=user-trash
Encoding=UTF-8
Icon=user-trash-full
Name[en_GB]=Wastebin
Name=Trash
Name[ar]=سلة المهملات
Name[be@latin]=Śmietnica
Name[bg]=Кошче
Name[bn]=আবর্জনা
Name[bn_IN]=আবর্জনা
Name[ca@valencia]=Paperera
Name[ca]=Paperera
Name[cs]=Koš
Name[csb]=Kòsz
Name[da]=Affald
Name[de]=Mülleimer
Name[el]=Κάδος απορριμάτων
Name[es]=Papelera
Name[et]=Prügikast
Name[eu]=Zakarontzia
Name[fa]=زباله
Name[fi]=Roskakori
Name[fr]=Corbeille
Name[fy]=Jiskefet
Name[ga]=Bruscar
Name[gl]=Lixo
Name[gu]=કચરાપેટી
Name[he]=אשפה
Name[hi]=रद्दी
Name[hne]=घुरुवा
Name[hr]=Otpad
Name[hsb]=Papjernik
Name[hu]=Szemétkosár
Name[is]=Rusl
Name[it]=Cestino
Name[ja]=ごみ箱
Name[kk]=Өшірілгендер
Name[km]=ធុងសំរាម
Name[kn]=ಕಸಬುಟ್ಟಿ
Name[ko]=휴지통
Name[ku]=Çop
Name[lt]=Šiukšliadėžė
Name[lv]=Miskaste
Name[mai]=रद्दी
Name[mk]=Корпа
Name[ml]=ചവറു്
Name[mr]=कचरापेटी
Name[ms]=Sampah
Name[nb]=Søppelbøtte
Name[nds]=Affalltünn
Name[nl]=Prullenbak
Name[nn]=Papirkorg
Name[or]=ଆବର୍ଜନା ପାତ୍ର
Name[pa]=ਰੱਦੀ
Name[pl]=Kosz
Name[pt]=Lixo
Name[pt_BR]=Lixo
Name[ro]=Gunoi
Name[ru]=Корзина
Name[se]=Ruskalihtti
Name[si]=ඉවතලන බහලුම
Name[sk]=Kôš
Name[sl]=Smeti
Name[sr@latin]=Smeće
Name[sr]=Смеће
Name[sv]=Papperskorg
Name[ta]=அகற்றிடம்
Name[tg]=Сабад
Name[th]=ถังขยะ
Name[tr]=Çöp
Name[uk]=Смітник
Name[wa]=Batch
Name[x-test]=xxTrashxx
Name[zh_CN]=回收站
Name[zh_TW]=資源回收筒
OnlyShowIn=KDE
Type=Link
URL[$e]=trash:/

This code will make the name of the trash icon change according to your default locale.
For some reason the order in which all the key lines (the ones without language codes) are placed seems to be important. Changing this order seems to break the trash icon.

Good luck! wink

Last edited by burafino (2010-01-12 02:57:11)

Offline

Board footer

Powered by FluxBB