I have built a game from source, and at the same time, I made an updater to the game written in a .sh extension. ti launch the update program you need to open the terminal and type bash ./updater-name.sh. this uses a lot of time and is not cool to use.
I thought of making the program executable through a right-click on the game. I want to add a function. on this program only, and so it executes the .sh file.
I know you can use the file manager-actions/nautilus, but I didn't find any way to add a function to a specific program.
maybe somoeone could help about that?
[Desktop Entry] Actions=ShrinkPDF Icon=transform-crop-resize MimeType=application/x-pdf ServiceTypes=KonqPopupMenu/Plugin Type=Service X-KDE-Priority=TopLevel [Desktop Action Update] Exec= /bin/bash /path/to/your/script %f Name=Update
In KDE place the file in ~/.local/share/kservices5/ServiceMenus/ ...unfortunatley I don't know where the desktop entries are in Gnome....