Updates:

Many new features now available including 2-Factor authentication

Right click delete

Started by Toonman, October 30, 2014, 11:27:50 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Toonman

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
Life is for living.  RIP Keith Floyd.   ;)

galaxytdm

Glad someone else asked this.
I managed it in Ubuntu 1010  but have forgotten how to do it.
If you need help ask a professional, then act upon their advice.
Anything less and you're just wasting peoples time.


Mark Greaves (PCNetSpec)

In which distro/version/desktop/file manager ?

Usually it's in the File Manager "Preferences" somewhere.
(File Manager > Edit > Preferences)
WARNING: You are logged into reality as 'root'
logging in as 'insane' is the only safe option.
pcnetspec.co.uk

galaxytdm

Don't know about Toonman  but I'm using peppermint 5.
If you need help ask a professional, then act upon their advice.
Anything less and you're just wasting peoples time.

Mark Greaves (PCNetSpec)

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 ?
WARNING: You are logged into reality as 'root'
logging in as 'insane' is the only safe option.
pcnetspec.co.uk


Toonman

#5
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.
Life is for living.  RIP Keith Floyd.   ;)

Mark Greaves (PCNetSpec)

#6
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 ?
WARNING: You are logged into reality as 'root'
logging in as 'insane' is the only safe option.
pcnetspec.co.uk

Toonman

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
Life is for living.  RIP Keith Floyd.   ;)

Mark Greaves (PCNetSpec)

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

Glad you're sorted...
WARNING: You are logged into reality as 'root'
logging in as 'insane' is the only safe option.
pcnetspec.co.uk


galaxytdm

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.
If you need help ask a professional, then act upon their advice.
Anything less and you're just wasting peoples time.

Mark Greaves (PCNetSpec)

Okey dokey :)

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 .....
WARNING: You are logged into reality as 'root'
logging in as 'insane' is the only safe option.
pcnetspec.co.uk

SeZo

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

Toonman

QuoteI'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!
Life is for living.  RIP Keith Floyd.   ;)

Mark Greaves (PCNetSpec)

#13
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)
WARNING: You are logged into reality as 'root'
logging in as 'insane' is the only safe option.
pcnetspec.co.uk

Toonman

Hey....it works!   :)

Thanks Mark
Life is for living.  RIP Keith Floyd.   ;)