Skip to content

Commit e247c7b

Browse files
committed
Add a couple more possibilities for .desktop file names when
showing the 'launch' button. Fixes #426
1 parent 0539c2d commit e247c7b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

usr/lib/linuxmint/mintinstall/mintinstall.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3303,8 +3303,11 @@ def on_installer_info_ready(self, task):
33033303
for desktop_file in [
33043304
# foo.desktop
33053305
"/usr/share/applications/%s.desktop" % bin_name,
3306-
# foo in foo-bar.desktop
3306+
# foo in foo-bar.desktop or foo_bar.desktop
33073307
"/usr/share/applications/%s.desktop" % bin_name.split("-")[0],
3308+
"/usr/share/applications/%s.desktop" % bin_name.split("_")[0],
3309+
# foo-bar package with foo_bar.desktop
3310+
"/usr/share/applications/%s.desktop" % bin_name.replace("-", "_"),
33083311
# foo in org.bar.Foo.desktop
33093312
"/usr/share/applications/%s.desktop" % bin_name.split(".")[-1],
33103313
"/usr/share/app-install/desktop/%s:%s.desktop" % (bin_name, bin_name)

0 commit comments

Comments
 (0)