Skip to content

feat: add button to install desktop file directly from jadx-gui#2404

Merged
skylot merged 4 commits intoskylot:masterfrom
Hidoni:feature/install-desktop-entry
Feb 1, 2025
Merged

feat: add button to install desktop file directly from jadx-gui#2404
skylot merged 4 commits intoskylot:masterfrom
Hidoni:feature/install-desktop-entry

Conversation

@Hidoni
Copy link
Copy Markdown
Contributor

@Hidoni Hidoni commented Feb 1, 2025

This PR is meant to address #1392.
While it would be ideal if all distros provided JADX and a matching desktop entry, this is unfortunately still not the case several years after the issue was first created. As someone who uses JADX on a distro without one, I know this is a convenience feature I appreciate JetBrains IDEs having and I think JADX could benefit from it too :)

I implemented this feature by adding a new button to the Help dropdown menu at the top of the screen which is only visible on systems where desktop files exist (UNIX, except for MacOS). It uses the standardized xdg commands for installing icons and desktop files to hopefully ensure maximum compatibility.
While working on the PR I noticed several incorrect values in the already provided desktop file that I changed too:

  • The comment was incorrect (compiler -> decompiler)
  • There was no StartupWMClass which meant the desktop environment could not map the icon to the process itself correctly (at least from my testing on GNOME).

@skylot
Copy link
Copy Markdown
Owner

skylot commented Feb 1, 2025

@Hidoni looks great! Thank you for your work 👍

Copy link
Copy Markdown
Owner

@skylot skylot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Found some possible improvement for start script and some security issues, please check 🙂

@skylot skylot merged commit afdd2d8 into skylot:master Feb 1, 2025
Repository owner deleted a comment from nkverma07 Aug 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants