terminal icon indicating copy to clipboard operation
terminal copied to clipboard

Error notification not working?

Open ryonakano opened this issue 1 year ago • 2 comments

What Happened?

Looking at the code it looks like Terminal sends an error notification when the executed command failed:

https://github.com/elementary/terminal/blob/d76a388fc3327007724414efe4418bb829c42bdf/src/Application.vala#L161-L164

However, I've never seen this and instead I always see the successful notification even if the executed command failed.

Steps to Reproduce

  1. Open Terminal
  2. Run the following command: sleep 3; false
  3. Make the Terminal background so that it sends notification after executing the command
  4. See the successful notification is shown
  5. Go back to Terminal and run echo $?
  6. See 1 (which commonly means error) is shown

Expected Behavior

Error notification should be shown instead of the successful notification if the executed command returned non-0 value.

OS Version

7.x (Horus)

Software Version

Latest release (I have run all updates)

Log Output

N/A

Hardware Info

  • CPU: AMD Ryzen 5 3400G
  • RAM: 16 GB
  • Graphics: iGPU
  • Storage: 490 GB NVMe SSD

ryonakano avatar Aug 14 '23 07:08 ryonakano