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
$ pcmanfm


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
$ pcmanfm