Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.
Bug 81060 - gnome-terminal -x is adding --display in the wrong place
Summary: gnome-terminal -x is adding --display in the wrong place
Alias: None
Product: Red Hat Public Beta
Classification: Retired
Component: gnome-terminal
Version: phoebe
Hardware: i386
OS: Linux
Target Milestone: ---
Assignee: Havoc Pennington
QA Contact:
: 82117 (view as bug list)
Depends On:
Blocks: 79578
TreeView+ depends on / blocked
Reported: 2003-01-03 22:31 UTC by George Karabin
Modified: 2008-05-01 15:38 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2003-02-08 18:53:17 UTC

Attachments (Terms of Use)
List of recently installed rawhide packages (deleted)
2003-01-11 03:29 UTC, George Karabin
no flags Details

Description George Karabin 2003-01-03 22:31:17 UTC
Description of problem:

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1. Create a new launcher on desktop or panel. 
2. Select "Run in Terminal" and enter a simple ssh command, like "ssh hostname"
(no quotes) to some ssh-computer on the network.
3. Execute the launcher.
Actual results:

A gnome-terminal will pop up and after authentication is complete it will
briefly flash a message about :0.0 not being found (at least, this is what I see
with a remote zsh shell, other shells might conceivably vary). Then the terminal
will exit.

Expected results:

The terminal should stay open - no command should have been passed over the ssh

Additional info:

When I issue the same ssh command from the command line, I don't see any
problem. Likewise, if I explicitly give ssh the name of a command to run on the
remote machine (like "xterm") the command runs properly.

Comment 1 George Karabin 2003-01-11 03:29:53 UTC
Created attachment 89296 [details]
List of recently installed rawhide packages

I recently updated a number of packages from rawhide, including the panel and
other gnome packages. This problem went away afterwards.

Comment 2 Havoc Pennington 2003-01-11 23:44:26 UTC
Let's assume it was a libc glitch or the like then, there's been some stuff like
that. Let us know if the bug returns.

Comment 3 George Karabin 2003-01-13 21:21:01 UTC
Oddly enough, with no changes to my installed software, the problem came back
this afternoon. Even more odd, the problem didn't occur this morning. I'm going
to reopen the bug, although now I'm kind of wondering about it's reproduceability.

Is there an easy way to strace something run from the panel?

Comment 4 Havoc Pennington 2003-01-13 21:33:29 UTC
You could make 
"strace -f -o /tmp/output foo" the command to be run by the launcher.

Comment 5 George Karabin 2003-01-13 21:43:51 UTC
Doh! Anyway, doing that showed as the first line:

3559  execve("/usr/bin/ssh", ["ssh", "", "--display",
":0.0"], [/* 21 vars */]) = 0

Comment 6 Havoc Pennington 2003-01-13 21:51:42 UTC
Oh, crap. gnome-panel probably adds the --display to attempt to handle the
multihead case.

I'll file a bug

Comment 7 Havoc Pennington 2003-01-13 21:56:18 UTC
Except I can't reproduce the problem. "rpm -q gnome-panel"?
"rpm -q gnome-desktop"?

Do you have a multihead system?

Comment 8 George Karabin 2003-01-13 22:38:16 UTC
I don't have a multihead system, although I do have a laptop with a docking
station, so there are two different displays in use at different times. I can't
imagine that gnome can tell that, and get confused by it, but there you go, in
case it matters.

Here are the versions:


Comment 9 Havoc Pennington 2003-01-14 17:42:38 UTC
Ah, here we go:

I think we can blame gnome-terminal. I think I know when I broke it, even.

Comment 10 Havoc Pennington 2003-01-21 21:55:33 UTC
gnome-terminal 2.2.0 should have a working fix for this.

Comment 11 Havoc Pennington 2003-02-03 22:41:57 UTC
*** Bug 82117 has been marked as a duplicate of this bug. ***

Comment 12 Jay Turner 2003-02-07 20:35:02 UTC
I can't replicate this bug either, so hoping that the original poster will
confirm that the new gnome-terminal code does indeed fix the problem.

Comment 13 George Karabin 2003-02-07 23:15:30 UTC
Sorry for the long delay - my machine had been less than stable and I hadn't had
a chance to boot into phoebe at work for a while. I can verify that
gnome-terminal-2.2.0.-2 isn't showing the problem anymore. Thanks!

Comment 14 Jay Turner 2003-02-08 18:53:17 UTC
Closing this out based on feedback from original poster.

Note You need to log in before you can comment on or make changes to this bug.