You are not logged in.

#1 2024-04-19 09:42:11

yush45
New Member
Registered: 2024-04-19
Posts: 3

Adding .desktop files to make app appear in jgmenu

Hi, I installed ghidra and moved it to /opt, and created a symlink to /usr/local/bin/ so I can start it from the terminal. But how can I get Ghidra in the menu?

Last edited by yush45 (2024-04-19 20:32:58)

Offline

#2 2024-04-19 09:58:48

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

Re: Adding .desktop files to make app appear in jgmenu

Add a ghidra.desktop file to /usr/share/applications. That will make it available system wide. For per user see hhh post below.

You can use an existing *.desktop file from the preferred menu category as a template.


You must unlearn what you have learned.
    -- yoda

Offline

#3 2024-04-19 14:29:04

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

Re: Adding .desktop files to make app appear in jgmenu

PackRat wrote:

Add a ghidra.desktop file to /usr/share/applications.

Or in ~/.local/share/applications (per user).

If I alter an installed application's *.desktop file, I first copy it to ~./local/share/applications so my changes won't get overwritten by an upgrade.


I don't care what you do at home. Would you care to explain?

Offline

#4 2024-04-19 18:44:40

yush45
New Member
Registered: 2024-04-19
Posts: 3

Re: Adding .desktop files to make app appear in jgmenu

Thanks! Can you recommend an app that manages and creates .desktop files?

Offline

#5 2024-04-19 20:48:00

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

Re: Adding .desktop files to make app appear in jgmenu

^ In ~/.local/share/applications folder make ghidra.desktop file with content (just enter the terminal command and the path to the icon you will use):

[Desktop Entry]
Name=Ghidra
Exec=<terminal command>
Type=Application
Icon=/path/to/some/icon.png
Comment=Start Ghidra

Notes:
1) terminal command without '<'  '>'
2) If the ghidra icon already exists, just the name is enough:
Icon=ghidra

Last edited by marens (2024-04-19 21:03:11)


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

Offline

#6 2024-04-19 21:14:54

yush45
New Member
Registered: 2024-04-19
Posts: 3

Re: Adding .desktop files to make app appear in jgmenu

Thanks!

Offline

Board footer

Powered by FluxBB