You are not logged in.

#1 2024-06-16 15:11:25

WolfeN
Member
Registered: 2021-04-10
Posts: 33

App has 2 menu entries under different categories

Is there a way to fix an app (installed from .deb file) that ends up having 2 menu entries under different categories? It is the scanner app "NAPS2" - it shows up after install under both Graphics & Office. Do I need to manually remove 1 of those entries? Not a big deal, it just bugs me. hmm

Offline

#2 2024-06-16 15:26:52

PackRat
jgmenu user Numero Uno
Registered: 2015-10-02
Posts: 2,611

Re: App has 2 menu entries under different categories

Yes, you need to edit (as root) the "scanner.desktop" file. Usually in /usr/share/applications

The "Categories=" line is the one to edit. Just remove the categories you don't want.


You must unlearn what you have learned.
    -- yoda

Offline

#3 2024-06-16 15:56:50

marens
Member
From: World without M$
Registered: 2023-02-02
Posts: 827

Re: App has 2 menu entries under different categories

Open the /usr/share/applications directory and locate the .desktop application file (which you need).

Copy and paste it into ~/.local/share/applications folder.
Open the file ~/.local/share/applications/your_application.desktop.

See the Categories line.
Remove the part where you don't want it to appear.
Done.

Look in the menu.

P.S.
Now I see that @PackRat has already given a similar solution, but mine is a bit different.


If people would know how little brain is ruling the world, they would die of fear.

Offline

#4 2024-06-16 16:55:19

hhh
Gaucho
From: High in the Custerdome
Registered: 2015-09-17
Posts: 16,032
Website

Re: App has 2 menu entries under different categories

^ Definitely copy any *.desktop file to ~/.local/share/applications before editing it, otherwise your customization will be overwritten if the application gets an apt upgrade.


No, he can't sleep on the floor. What do you think I'm yelling for?!!!

Offline

#5 2024-06-16 17:26:18

WolfeN
Member
Registered: 2021-04-10
Posts: 33

Re: App has 2 menu entries under different categories

PackRat wrote:

Yes, you need to edit (as root) the "scanner.desktop" file. Usually in /usr/share/applications

The "Categories=" line is the one to edit. Just remove the categories you don't want.

That was easy! Thanks, another tip I'll make sure to remember. smile

Offline

Board footer

Powered by FluxBB