Article 5449W How can I make my package installed through apt command be recognized as default application?

How can I make my package installed through apt command be recognized as default application?

by
melonmusk2020
from LinuxQuestions.org on (#5449W)
I installed pcmanfm file manager through apt install pcmanfm, and I want to make it as default application when opening files and folders.
I right clicked on a folder and clicked open with other application, but pcmanfm doesn't appear on it. Also When I using pcmanfm I right cliked on the pcmanfm icon at desktop task bar but Add to Favorites menu doesn't appear.

And another way is following instructions here:
https://help.ubuntu.com/community/De...t_File_Manager

I followed these instructions:
Code:cd ~/.local/share/applications
vim pcmanfm.desktopAdd following:
Code:[Desktop Entry]
Name=Open Folder
TryExec=pcmanfm
Exec=pcmanfm %U
NoDisplay=true
Terminal=false
Icon=folder-open
StartupNotify=true
Type=Application
MimeType=x-directory/gnome-default-handler;x-directory/normal;inode/directory;application/x-gnome-saved-search;Code:vim defaults.listAdd following:
Code:inode/directory=pcmanfm.desktop
x-directory/normal=pcmanfm.desktopNone of these work.

Only way to open pcmanfm is typing command in console
$ pcmanfmlatest?d=yIl2AUoC8zA latest?i=lBMziY51CUU:WZGS36Z3NZA:F7zBnMy latest?i=lBMziY51CUU:WZGS36Z3NZA:V_sGLiP latest?d=qj6IDK7rITs latest?i=lBMziY51CUU:WZGS36Z3NZA:gIN9vFwlBMziY51CUU
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments