Ticket #45 (closed defect: fixed)

Opened 7 years ago

Last modified 7 years ago

service-discovery applet should show alert if unable to connect to SSH.

Reported by: brian.nickel@… Owned by: sebest
Milestone: Component: service-discovery-applet
Keywords: Cc:

Description

If you try connecting to an SSH host in the service-discovery-applet and that host is not accessible, the text "ssh: connect to host #.#.#.# port 22: Connection refused" will flash for a millisecond before the terminal closes and you will have no clue what went wrong. Some sort of notification should occur if the connection fails.

Attachments

hack-fix.patch Download (1.0 KB) - added by xaiki 7 years ago.

Change History

Changed 7 years ago by xaiki

Ok, I got a hack that implements this, it's not for the faint-hearted.

Basically it replaces the -x option (that just execs but doesn't run the cmdline in a reall shell with nor &&) by the most-used -e option (that will spawn a shell).

then it uses another hack (running /bin/sh -c \"\") so that gnome-terminal doesn't try to be smart about the command line.

finally the command is ed into a cat (that will basically sit forever) so that the user can see the error message.

enjoy.

Changed 7 years ago by xaiki

Changed 7 years ago by lennart

  • owner changed from lennart to sebest
  • component changed from other to service-discovery-applet

Changed 7 years ago by sebest

  • status changed from new to closed
  • resolution set to fixed

Thanx brian for the bug report

i fixed it in a cleaner way using a wrapper that check the exit status and display stderr in a gtk dialog box.

it's used by all plugins now

Note: See TracTickets for help on using tickets.