Add trash to desktop

Please post all general support questions for LXDE here.
Locked
jango
Posts: 16
Joined: Thu Dec 16, 2010 9:02 pm

Add trash to desktop

Post by jango »

How can i have trash and home to Lubuntu desktop?
jango
Posts: 16
Joined: Thu Dec 16, 2010 9:02 pm

Re: Add trash to desktop

Post by jango »

bump...
maces
Posts: 503
Joined: Sat Oct 25, 2008 6:04 pm
Contact:

Re: Add trash to desktop

Post by maces »

Hi,

there's no checkbox for that, afaik. But you could use *.desktop files. Copy and paste the code into a file:

Code: Select all

[Desktop Entry]
Type=Application
Icon=system-file-manager
Name=Home Folder
GenericName=Home Folder
Comment=open home folder in PCManFM
Categories=FileManager;Utility;Core;GTK;
Exec=pcmanfm
StartupNotify=true
Terminal=false
MimeType=x-directory/normal;inode/directory;
and save this as home.desktop.

Code: Select all

[Desktop Entry]
Type=Application
Icon=user-trash
Name=Trash
GenericName=Trash
Comment=open trash in PCManFM
Categories=FileManager;Utility;Core;GTK;
Exec=pcmanfm trash:///
StartupNotify=true
Terminal=false
MimeType=x-directory/normal;inode/directory;

and save this as trash.desktop

maces
jango
Posts: 16
Joined: Thu Dec 16, 2010 9:02 pm

Re: Add trash to desktop

Post by jango »

Thx, it works :)
amjjawad
Posts: 304
Joined: Mon Aug 29, 2011 1:51 am
Contact:

Re: Add trash to desktop

Post by amjjawad »

Is there anyway to enable "Right Click > Empty Trash" in LXDE? I mean as far as I know, with other DEs, one can do that from the Trash Icon on the desktop without going to the File Manager.

Perhaps I should contact PCMan :)
Feel Free to contact me: http://amjjawad.net
kfeina
Posts: 2
Joined: Fri Nov 04, 2011 6:49 pm

Re: Add trash to desktop

Post by kfeina »

Hello,

I have tried the trash.desktop and it's nice. But if you drag a file inside the icon the following message appears:

openboxThem: Error moving file: Not a directory

Any solution?

Thanks a lot.
Terazynis
Posts: 1
Joined: Mon Nov 28, 2011 8:28 am

Re: Add trash to desktop

Post by Terazynis »

Another way, to add "Trash" and "Home" (or any other) shortcut to Your desktop is by using "lxshortcut".
OK, let's create "Home" shortcut on Your desktop.
Press Alt+F2, then type in:

Code: Select all

lxshortcut -o  ~/Desktop/home.desktop
And then a window, will pop up. Fill up all the fields.
In 1-st field type: Home
In 2-nd field type: pcmanfm
In 3-rd field type: Open with pcmanfm (or just leave it blank)
Don't forget to choose an icon You like to use for the shortcut and press "OK"

Now let's create "Trash" shortcut on Your desktop.
Press Alt+F2, then type in:

Code: Select all

lxshortcut -o  ~/Desktop/trash.desktop
And then a window, will pop up. Fill up all the fields.
In 1-st field type: Trash
In 2-nd field type: pcmanfm trash:///
In 3-rd field type: Open with pcmanfm (or just leave it blank)
Don't forget to choose an icon You like to use for the shortcut and press "OK"

In this way You can create any chortcut, You like.
fabrixx
Posts: 6
Joined: Sun Mar 11, 2012 9:08 pm
Contact:

Re: Add trash to desktop

Post by fabrixx »

Terazynis wrote:Another way, to add "Trash" and "Home" (or any other) shortcut to Your desktop is by using "lxshortcut".
OK, let's create "Home" shortcut on Your desktop.
Press Alt+F2, then type in:

Code: Select all

lxshortcut -o  ~/Desktop/home.desktop
And then a window, will pop up. Fill up all the fields.
In 1-st field type: Home
In 2-nd field type: pcmanfm
In 3-rd field type: Open with pcmanfm (or just leave it blank)
Don't forget to choose an icon You like to use for the shortcut and press "OK"
nothing appear in lubuntu 12.04beta :|
seppalta
Posts: 449
Joined: Tue Sep 20, 2011 6:09 am
Location: USA
Contact:

Re: Add trash to desktop

Post by seppalta »

Locked