Right click delete

I think I asked this ages ago. Here goes again!
How do I add ‘delete’ to the right click menu?
I have now cocked up the menu system by altering transparency. No menus can now be seen. :-[

Thanks
Adam

Glad someone else asked this.
I managed it in Ubuntu 1010 but have forgotten how to do it.

In which distro/version/desktop/file manager ?

Usually it’s in the File Manager “Preferences” somewhere.
(File Manager > Edit > Preferences)

Don’t know about Toonman but I’m using peppermint 5.

In Peppermints “PCManFM” file manager, you cannot have both “Move to Trash” and “Delete” on the right-click context menu at the same time, it’s one or the other I’m afraid.

It’s usually easier to leav it set to “Move to Trash” … then if you want to “Delete” something without sending it to the trash:-

highlight the item(s), and use the Shift+Del keyboard shortcut.


I’ve written a “file manager action” to add “Delete” to the right-click context menu (as well as “move to Trash”), but there is no “easy” way to get it to prompt for confirmation … so I can tell you how to add it, but it will NOT give you any chance to change your mind, it wil just delete the file/folder without confirmation.

Still wanna know how ?

Hello Mark.

Peppermin5
I’ll just live with the delete problem. It’s the drop down menu problem. It isn’t just file manager, it’s everything. For example, the Peppermint menu button on the bottom left, it won’t do anything if I click on it.
Help!..I’m having to use Windows. :-*

Update.
In fact right click anything doesn’t work.

have you tried a different mouse ?

have you tried booting into an earlier kernel ?

Are you able to open a terminal with the Ctrl+Alt+T keyboard shortcut ?

If so, does the menu appear if you run:

lxpanelctl menu

?

And does everything work properly if you run:

lxseession-logout

select “Logout” … then log back in to the “Guest” account ?

Hi Mark.

I tried a different mouse, booted into an earlier kernel and used the commands that you posted. Nothing worked. In the end I just deleted the partition using a Live PM5 usb and Gparted then re-installed. I copied files to a USB stick using keyboard commands. All in took 15 minutes. Try doing that in Windows!

Thanks for your efforts though.
Adam

Well that’s one way of problem solving (and sometimes the quickest too) :slight_smile:

Glad you’re sorted…

Sorry Mark this slipped by me.
Not really bothered about getting delete on the menu, it’s just that my brain isn’t looking for move to trash so it confuses me for a second.

Okey dokey :slight_smile:

Oddly, another way to delete a file without sending it to trash is to highlight it in file manager, then click
Edit > Remove

Quite why the PCManFM devs decided not to put that in the right-click context menu is beyond me …

Another way to permanently delete is to highlight it in file manager, then press Shift+Delete on the keyboard :slight_smile:

I've written a "file manager action" to add "Delete" to the right-click context menu (as well as "move to Trash"), but there is no "easy" way to get it to prompt for confirmation .. so I can tell you how to add it, but it will NOT give you any chance to change your mind, it wil just delete the file/folder without confirmation.

Still wanna know how ?

Yes please!

This is only for Peppermint 5 (file manager actions are not supported in earlier versions of pcmanfm/libfm)…

run:

sudo gedit /usr/share/file-manager/actions/delete-file.desktop

and make it read:

[Desktop Entry]
Name = Delete
Tooltip = Delete file or folder
Icon = gtk-delete
Profiles = on_folder;all_files;

[X-Action-Profile on_folder]
Name = Delete
MimeTypes=inode/directory;all/allfiles;
SelectionCount = 1
Exec = rm -rf %f

SAVE the file … log off/on.

REMEMBER, when using the “Delete” option you will NOT be given any “Are you sure” type warning … it will just do it.
(and obviously it won’t delete stuff you don’t have permission to delete)

Hey…it works! :slight_smile:

Thanks Mark

no problem :slight_smile: