FS#21421 - [gnome-terminal] Invalid exit status

Attached to Project: Arch Linux
Opened by Kyle Bassett (ciphercast) - Friday, 22 October 2010, 22:42 GMT
Last edited by Ionut Biru (wonder) - Saturday, 30 April 2011, 15:29 GMT
Task Type Bug Report
Category Upstream Bugs
Status Closed
Assigned To Jan de Groot (JGC)
Ionut Biru (wonder)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
This issue developed after a recent system upgrade. When the Xfce default terminal is changed to gnome-terminal, an error will appear after opening and closing gnome-terminal (via exo-open --launch).

The error only appears when one instance of gnome-terminal is running, and then terminated. For instance, if more than one instance is started, the error will *not* appear after the last instance is closed.

I could not determine if this error is Arch related or upstream, so I'll submit here first.

Error (GUI):
"Failed to execute default Terminal Emulator. Input/Output error."

Steps to reproduce the problem:
1. open Xfce4 Settings Manager > Preferred Applications > Utilities tab
2. set the gnome terminal as default. (If "GNOME Terminal" is not available, use Other and type "gnome-terminal".)
3. Close all terminal windows. From the Run Program dialog box: "exo-open --launch TerminalEmulator"
4. Close the new gnome terminal window, and the error should appear.


'Right click > Terminal' uses the information in the xfce4-terminal.desktop entry file. (for me, /usr/share/applications/xfce4-terminal.desktop)


$ pacman -Qo /usr/bin/exo-open
/usr/bin/exo-open is owned by exo 0.3.107-2

$ pacman -Qi exo
Name : exo
Version : 0.3.107-2
URL : http://www.xfce.org/projects/exo
Licenses : GPL2 LGPL
Groups : None
Provides : None
Depends On : libxfce4util>=4.6.2 hal>=0.5.14 gtk2 hicolor-icon-theme sh
Optional Deps : libnotify: notification support for exo-mount-notify
perl-uri: for mail-compose helper script
Required By : terminal thunar xfce4-panel xfce4-settings
xfce4-verve-plugin
Conflicts With : None
Replaces : None
Installed Size : 5516.00 K
Packager : Rémy Oudompheng <remy@archlinux.org>
Architecture : i686
Build Date : Fri 03 Sep 2010 04:01:51 AM EDT
Install Date : Tue 19 Oct 2010 11:21:28 AM EDT
Install Reason : Installed as a dependency for another package
Install Script : Yes
Description : Extensions to Xfce by os-cillation





This task depends upon

Closed by  Ionut Biru (wonder)
Saturday, 30 April 2011, 15:29 GMT
Reason for closing:  Fixed
Additional comments about closing:  gnome-terminal 3.0.1-2
Comment by Kyle Bassett (ciphercast) - Friday, 22 October 2010, 22:52 GMT
Quick workaround:

cp /usr/share/applications/Terminal.desktop ~/.local/share/applications/

Edit your user copy of Terminal.desktop:
-old "Exec=exo-open --launch TerminalEmulator"
-new "Exec=gnome-terminal"

Test:
-right click on Desktop and click "Terminal"
-close the window, and error should not appear.
Comment by Jan de Groot (JGC) - Saturday, 23 October 2010, 09:00 GMT
This is not a bug in exo-open. It's caused by gnome-terminal behaviour.
When you start gnome-terminal for the first time, that instance is running for all gnome terminals. When you close that instance, the exit code is 255. When you start a 2nd gnome-terminal while one is already running, the gnome-terminal launcher exits with status 0 instantly. Exo-open detects the 255 exit code as a failure to start the application.
Comment by Kyle Bassett (ciphercast) - Saturday, 23 October 2010, 16:28 GMT
I thought it was linked to exit status, but I couldn't pinpoint why this started happened all of a sudden. Any ideas?

At the very least, I think exo-open should report a more functional error.
Comment by Jan de Groot (JGC) - Thursday, 31 March 2011, 10:21 GMT
  • Field changed: Summary ([gnome-terminal] exo-open raises error on closing non-default terminal → [gnome-terminal] Invalid exit status)
  • Field changed: Category (Packages: Extra → Upstream Bugs)
  • Field changed: Architecture (i686 → All)

Loading...