Author Topic: [SOLVED] Adding/Removing PCManFM Right-Click Default Apps  (Read 1785 times)

skyhawk

  • Guest
[SOLVED] Adding/Removing PCManFM Right-Click Default Apps
« on: August 20, 2010, 02:28:44 PM »
Can someone point me to the configuration file that controls default apps displayed when files are right-clicked in PCManFM (the "Open with ... " apps displayed)?
« Last Edit: August 31, 2010, 08:24:29 AM by LXDEmystified »

Online Rudge

  • Hero Member
  • *****
  • Posts: 9772
  • I'm Just A Dog.
Re: Adding/Removing PCManFM Right-Click Default Apps
« Reply #1 on: August 20, 2010, 02:57:38 PM »
If you right click a file and hover over "open with..." you get the option to pick the application. After doing that you can set it to always use that app for those files.


-If you wish to make an apple pie from scratch, you must first invent the universe-  Carl Sagan

skyhawk

  • Guest
Re: Adding/Removing PCManFM Right-Click Default Apps
« Reply #2 on: August 21, 2010, 08:05:26 AM »
If you right click a file and hover over "open with..." you get the option to pick the application. After doing that you can set it to always use that app for those files.

I already know how to set default apps. What I would like to know is the location of the configuration file that controls the list of all apps that are displayed with "Open with ...". For example, when I right-click on a PDF file I get a too-long list of apps, some of which are simple text editors that will not open PDF files. I would like to be able to manually edit that configuration file so that I can "weed-out" the junk when necessary.

Thanks, Rudge.

skyhawk

  • Guest
Re: Adding/Removing PCManFM Right-Click Default Apps
« Reply #3 on: August 31, 2010, 08:23:28 AM »
Duplicate menu items can be removed by deleting .desktop files found in:

~/.local/share/applications

The solution was found in the official PCMan File Manager forum.

Offline parnote

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 4453
  • The truth is out there ... PCLinuxOS!
Re: Adding/Removing PCManFM Right-Click Default Apps
« Reply #4 on: August 31, 2010, 09:41:34 AM »
Duplicate menu items can be removed by deleting .desktop files found in:

~/.local/share/applications

The solution was found in the official PCMan File Manager forum.


LXDEmystified,

The only .desktop files in my ~/.local/share/applications folder are the .desktop files for icons on my desktop (I normally don't have icons on my desktop, but the reason for having them there is because of an article I've been working on for the magazine. They will soon leave my desktop, just as soon as I finish the article I'm working on.).

I believe the file you want to edit there, however, is the defaults.list file.

parnote
PCLinuxOS Magazine Chief Editor

Linux Registered User #485009

In a world without walls, who needs Windows?

PCLinuxOS Wiki: Contribute tips/tricks/how-to's!

skyhawk

  • Guest
Re: Adding/Removing PCManFM Right-Click Default Apps
« Reply #5 on: August 31, 2010, 02:36:07 PM »
Quote
... I believe the file you want to edit there, however, is the defaults.list file.


Not true in my case. I do not have any icons on my desktop, other than the default "My Documents" icon, so the only .desktop files I had in /home/rg/.local/share/applications/ were files for the duplicate menu items (right-click, "Open with ...)". Removing those .desktop files alone removed the duplicate menu items. Afterwards, I also found references to those .desktop files in defaults.list and mimeinfo.cache, and those references to the unwanted .desktop files were edited-out manually. The unwanted .desktop files were named "leafpad-user-created ...", etc., as best as I can remember.

I saw this solution posted at:

http://forum.lxde.org

where the forum moderator replied to a message.
« Last Edit: August 31, 2010, 02:39:33 PM by LXDEmystified »