Create own shorcut icon in Ubuntu 22 panel
If you want to run some curl on icon click from Ubuntu 22 panel, then you need to create file in ~/.local/share/applications:
1 2 3 4 5 6 7 8 | [Desktop Entry] Encoding=UTF-8 Version=1.0 Type=Application Terminal=false Exec=curl http://x.x.x.x:yyyy/action Name=Gateway Icon=dialog-information |
Then after few seconds, press special key (aka Windows key) and type your “application” name. You can grab and paste it onto application panel to be shown as a shortcut.