Skip to content

Commit

Permalink
Add a couple more possibilities for .desktop file names when
Browse files Browse the repository at this point in the history
showing the 'launch' button.

Fixes #426
  • Loading branch information
mtwebster committed Jul 30, 2024
1 parent 0539c2d commit e247c7b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion usr/lib/linuxmint/mintinstall/mintinstall.py
Original file line number Diff line number Diff line change
Expand Up @@ -3303,8 +3303,11 @@ def on_installer_info_ready(self, task):
for desktop_file in [
# foo.desktop
"/usr/share/applications/%s.desktop" % bin_name,
# foo in foo-bar.desktop
# foo in foo-bar.desktop or foo_bar.desktop
"/usr/share/applications/%s.desktop" % bin_name.split("-")[0],
"/usr/share/applications/%s.desktop" % bin_name.split("_")[0],
# foo-bar package with foo_bar.desktop
"/usr/share/applications/%s.desktop" % bin_name.replace("-", "_"),
# foo in org.bar.Foo.desktop
"/usr/share/applications/%s.desktop" % bin_name.split(".")[-1],
"/usr/share/app-install/desktop/%s:%s.desktop" % (bin_name, bin_name)
Expand Down

1 comment on commit e247c7b

@LinuxOnTheDesktop
Copy link

Choose a reason for hiding this comment

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

Marvellous!

Please sign in to comment.