Korkman / macemu-appimage-builder

Builds the popular classic Macintosh emulators BasiliskII and SheepShaver from source to create AppImages
GNU General Public License v3.0
38 stars 3 forks source link

Add secondary menu items as an alternative to using multiple icons #16

Closed robxnano closed 2 years ago

robxnano commented 2 years ago

.desktop files have the ability to define multiple shortcuts with their own names and commands. If you add these to the existing shortcuts, there wouldn't be a need to have separate icons for GUI and non-GUI modes. Example of how they appear: Screenshot from 2022-09-07 23-36-27

Secondary menu items are supported on most major desktop environments, and are typically accessed by right-clicking on the launcher or taskbar icons. I added an extra command-line argument to the AppRun wrapper to create a single shortcut. Due to the added complexity of the .desktop files, I had to use sed to insert the titles and paths, and I haven't had time to set up a Docker instance to test the build process yet. But please take a look and see how it could be useful.

Korkman commented 2 years ago

I modified your changes a bit. The result is now merged in main and available on the release page. Thank you for contributing!

robxnano commented 2 years ago

Thanks for fixing it up for me - it works great!