gnome-command-menu icon indicating copy to clipboard operation
gnome-command-menu copied to clipboard

use multiple commands

Open Tealk opened this issue 3 years ago • 3 comments

Hello,

I am trying to create a command that will establish a vpn connection and then open an ssh console. The command works fine in the terminal, but nothing happens in the extension.

"title": "SSH to IP",
"command": "nmcli con up id pfSense; gnome-terminal -- bash -c 'ssh IP",
"icon": "utilities-terminal"

Tealk avatar Aug 13 '22 11:08 Tealk

Try Moving both commands inside the gnome-terminal - example -

{
    "title": "Multiple Commands",
    "icon": "utilities-terminal",
    "command": "gnome-terminal -- bash -c 'echo command1; echo command2; read'"
}

image

arunk140 avatar Aug 14 '22 16:08 arunk140

thank you, that is how it works

Tealk avatar Aug 14 '22 23:08 Tealk

for the terminal it works, but for sftp i am now facing the problem again

{
  "title": "SFTP to IP",
  "command": "nmcli con up id pfSense; nautilus 'sftp://IP/root'",
  "icon": "folder"
}

Tealk avatar Aug 15 '22 11:08 Tealk