Skip to content

Instantly share code, notes, and snippets.

@calebstewart
Created March 9, 2019 15:51
Show Gist options
  • Save calebstewart/c1144d6636073e8bc68ef5abe286c6fb to your computer and use it in GitHub Desktop.
Save calebstewart/c1144d6636073e8bc68ef5abe286c6fb to your computer and use it in GitHub Desktop.
Desktop File for Ghidra 9.0
[Desktop Entry]
Categories=Application;Development;
Comment[en_US]=Ghidra Software Reverse Engineering Suite
Comment=Ghidra Software Reverse Engineering Suite
Exec=/opt/ghidra/ghidraRun
GenericName[en_US]=Ghidra Software Reverse Engineering Suite
GenericName=Ghidra Software Reverse Engineering Suite
Icon=/opt/ghidra/support/ghidra.ico
MimeType=
Name[en_US]=Ghidra 9.0
Name=Ghidra 9.0
Path=/opt/ghidra/
StartupNotify=false
Terminal=false
TerminalOptions=
Type=Application
Version=1.0
X-DBUS-ServiceName=
X-DBUS-StartupType=none
X-KDE-SubstituteUID=false
X-KDE-Username=
@balchick
Copy link

I tried this on Ubuntu 18.04. My ghidra folder lives at /home/ubuntu/ghidra/ghidra_9.1.2_PUBLIC

The script for "ghidraRun" is in that folder - so I edited the names to Path and Exec for my setup.

When I double-click the desktop shortcut, it appears that nothing happens. If I change the Exec name to "ghidraRunx" is recognizes the error. Not sure why it won't start? Maybe because the ghidraRun script can't resolve the path it is in? I've tried looking on linux forums for how to set up desktop shortcuts, but no luck yet. This is one area where linux needs to improve, IMO. Thanks in advance.

@calebstewart
Copy link
Author

Did you modify the Path and Exec lines to correspond to your installation location?

@balchick
Copy link

balchick commented Apr 1, 2020 via email

@lucidBrot
Copy link

Thanks!
The ghidra icon I had at support/ghidra.ico was a mess, but after I replaced it with some random ico from the internet, it looks good now :)

@calebstewart
Copy link
Author

Awesome, glad you got it working!

@elsandosgrande
Copy link

Thanks!
The ghidra icon I had at support/ghidra.ico was a mess, but after I replaced it with some random ico from the internet, it looks good now :)

@lucidBrot That's because Eye of GNOME (Image Viewer in Ubuntu) and, probably by extension, GNOME Shell misread the image as a 128×128 image whereas it is actually a 256×256 image. Converting it into another format using XnView MP works though.

@L0WK3Y-IAAN
Copy link

Thanks m8 🙌

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment