I try to make desktop entry like in this post: Make desktop entry for app that requires root privileges
but when I modified line in my launcher:
Exec= /bin/sh "/usr/local/netbeans-11.2/netbeans/bin/netbeans"
to this:
Exec=pkexec /bin/sh "/usr/local/netbeans-11.2/netbeans/bin/netbeans"
Launcher displayed only root password box and nothing else. When I'm typing my password and hit enter nothing is doing. What I should to change? Maybe I can remove "/bin/sh" to work launcher propelly?