How can I do right click > File > Properties > Open with > Set as default in the terminal?
I created a java app and an installation script for it. I would like to run my app by double click. So I create myProgram.desktop file in /usr/share/applications/
(I did it because base JRE.desktop
is using the wrong working directory). If I set it up in the GUI, everything is working, but I am not able to do it from the terminal (basically from my script).