#StackBounty: #lxde #menu How to adjust the application select option menu?

Bounty: 100

Environment:

uname -a
Linux debian 5.10.0-8-amd64 #1 SMP Debian 5.10.46-4 (2021-08-03) x86_64 GNU/Linux
dpkg -s lxde
Maintainer: Debian LXDE Maintainers <pkg-lxde-maintainers@lists.alioth.debian.org>
Architecture: all
Source: lxde-metapackages
Version: 11

Right click mouse on a txt file:

enter image description here

How can I replace the Libreoffice Calc with Mousepad, or say, remove Libreoffice Calc and put Mousepad at the second just below Open in the menu?

file -i  test.txt
test.txt: text/plain; charset=utf-8

I fix the mimeinfo.cache on text/plain:

sudo vim /usr/share/applications/mimeinfo.cache
text/plain=mousepad.desktop;vim.desktop;

Click on test.txt, the Libreoffice-Calc is still at the top of menu.
enter image description here

Maybe the OS treats txt as csv file.

text/plain=mousepad.desktop;vim.desktop;
text/rtf=libreoffice-writer.desktop;
text/spreadsheet=libreoffice-calc.desktop;
text/tab-separated-values=libreoffice-calc.desktop;


Get this bounty!!!

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.