Author Topic: Right click delete  (Read 5508 times)

0 Members and 1 Guest are viewing this topic.

Offline Toonman

  • Hero Member
  • *****
  • Posts: 904
  • Karma: 15
  • Freeing the World form the Microsoft scurge!
    • View Profile
    • Awards
Right click delete
« on: October 30, 2014, 11:27:50 am »
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
« Last Edit: October 30, 2014, 11:37:56 am by Toonman »
Life is for living.  RIP Keith Floyd.   ;)

Offline galaxytdm

  • Ubuntu 11.04
  • Sr. Member
  • ****
  • Posts: 335
  • Karma: 7
  • Gender: Male
  • Something Something dark side
    • View Profile
    • Awards
Re: Right click delete
« Reply #1 on: October 30, 2014, 11:58:07 am »
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.

The Linux Community Forum

Re: Right click delete
« Reply #1 on: October 30, 2014, 11:58:07 am »

Offline Mark Greaves (PCNetSpec)

  • Hero Member
  • *****
  • Posts: 18277
  • Karma: 479
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • Awards
Re: Right click delete
« Reply #2 on: October 30, 2014, 06:16:12 pm »
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

Offline galaxytdm

  • Ubuntu 11.04
  • Sr. Member
  • ****
  • Posts: 335
  • Karma: 7
  • Gender: Male
  • Something Something dark side
    • View Profile
    • Awards
Re: Right click delete
« Reply #3 on: October 30, 2014, 08:18:43 pm »
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.

Offline Mark Greaves (PCNetSpec)

  • Hero Member
  • *****
  • Posts: 18277
  • Karma: 479
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • Awards
Re: Right click delete
« Reply #4 on: October 30, 2014, 10:33:21 pm »
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

The Linux Community Forum

Re: Right click delete
« Reply #4 on: October 30, 2014, 10:33:21 pm »

Offline Toonman

  • Hero Member
  • *****
  • Posts: 904
  • Karma: 15
  • Freeing the World form the Microsoft scurge!
    • View Profile
    • Awards
Re: Right click delete
« Reply #5 on: October 31, 2014, 09:06:48 am »
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.
« Last Edit: October 31, 2014, 09:31:08 am by Toonman »
Life is for living.  RIP Keith Floyd.   ;)

Offline Mark Greaves (PCNetSpec)

  • Hero Member
  • *****
  • Posts: 18277
  • Karma: 479
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • Awards
Re: Right click delete
« Reply #6 on: October 31, 2014, 12:35:10 pm »
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:
Code: [Select]
lxpanelctl menu
?

And does everything work properly if you run:
Code: [Select]
lxseession-logout
select "Logout" .. then log back in to the "Guest" account ?
« Last Edit: October 31, 2014, 12:46:08 pm by Mark Greaves (PCNetSpec) »
WARNING: You are logged into reality as 'root'
logging in as 'insane' is the only safe option.
pcnetspec.co.uk

Offline Toonman

  • Hero Member
  • *****
  • Posts: 904
  • Karma: 15
  • Freeing the World form the Microsoft scurge!
    • View Profile
    • Awards
Re: Right click delete
« Reply #7 on: October 31, 2014, 02:47:11 pm »
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.   ;)

Offline Mark Greaves (PCNetSpec)

  • Hero Member
  • *****
  • Posts: 18277
  • Karma: 479
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • Awards
Re: Right click delete
« Reply #8 on: October 31, 2014, 04:26:44 pm »
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

The Linux Community Forum

Re: Right click delete
« Reply #8 on: October 31, 2014, 04:26:44 pm »

Offline galaxytdm

  • Ubuntu 11.04
  • Sr. Member
  • ****
  • Posts: 335
  • Karma: 7
  • Gender: Male
  • Something Something dark side
    • View Profile
    • Awards
Re: Right click delete
« Reply #9 on: November 02, 2014, 01:29:06 pm »
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.

Offline Mark Greaves (PCNetSpec)

  • Hero Member
  • *****
  • Posts: 18277
  • Karma: 479
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • Awards
Re: Right click delete
« Reply #10 on: November 02, 2014, 02:41:47 pm »
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

Offline SeZo

  • Hero Member
  • *****
  • Posts: 1864
  • Karma: 145
  • Gender: Male
    • View Profile
    • Awards
Re: Right click delete
« Reply #11 on: November 02, 2014, 07:08:21 pm »
Another way to permanently delete is to highlight it in file manager, then press Shift+Delete on the keyboard :)

Offline Toonman

  • Hero Member
  • *****
  • Posts: 904
  • Karma: 15
  • Freeing the World form the Microsoft scurge!
    • View Profile
    • Awards
Re: Right click delete
« Reply #12 on: November 04, 2014, 12:22:00 pm »
Quote
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!
Life is for living.  RIP Keith Floyd.   ;)

Offline Mark Greaves (PCNetSpec)

  • Hero Member
  • *****
  • Posts: 18277
  • Karma: 479
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • Awards
Re: Right click delete
« Reply #13 on: November 04, 2014, 12:38:27 pm »
This is only for Peppermint 5 (file manager actions are not supported in earlier versions of pcmanfm/libfm)...

run:
Code: [Select]
sudo gedit /usr/share/file-manager/actions/delete-file.desktop
and make it read:
Code: [Select]
[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)
« Last Edit: November 04, 2014, 12:48:36 pm by Mark Greaves (PCNetSpec) »
WARNING: You are logged into reality as 'root'
logging in as 'insane' is the only safe option.
pcnetspec.co.uk

Offline Toonman

  • Hero Member
  • *****
  • Posts: 904
  • Karma: 15
  • Freeing the World form the Microsoft scurge!
    • View Profile
    • Awards
Re: Right click delete
« Reply #14 on: November 06, 2014, 10:12:40 am »
Hey....it works!   :)

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

 


SimplePortal 2.3.3 © 2008-2010, SimplePortal