! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
when opening a Terminal, two open instead
Status:
RESOLVED: WORKSFORME
Product:
Xfce4-terminal
Component:
General

Comments

Description cyqzz 2008-05-23 14:11:11 CEST
User-Agent:       Opera/9.27 (X11; Linux i686; U; en)
Build Identifier: 

(version 0.2.8, on Hardy)
When a Terminal takes some time to open, e.g. due to swapping, two Terminals will open. This is really annoying.
I understand this has something to do with D-Bus and timeouts...

Reproducible: Always

Steps to Reproduce:
1. Use some memory heavy apps so that things are swapped to disk.
2. Press hotkey for Terminal.
3. After a couple of seconds one Terminal will open, and then another.

Actual Results:  
Two Terminal windows open.

Expected Results:  
One Terminal window should open.
Comment 1 Robby Workman editbugs 2008-06-20 00:29:08 CEST
I also have seen this, but I attributed it to sticky keys or some such...
Comment 2 cyqzz 2008-09-15 16:47:06 CEST
What seems to be happening is:
1. A Terminal process launches, sends message to Terminal service to open new window, waits for reply
2. Service receives message, tries to open new window, which requires swapping things back into memory
3. Terminal process stops waiting due to timeout and launches a window itself
4. Service is done swapping and has opened a window, now it sends a reply

Increasing the timeout is just a workaround. A better solution would be to enhance the protocol to make the service send two replies:
- one before opening a new window, to confirm that it received the request (the process that sent the request can wait for this with a short timeout)
- one after opening the window, to give success/failure info (the other process can wait for this without a timeout)
Comment 3 Nick Schermer editbugs 2009-07-03 08:58:07 CEST
This does only happen when there is already a terminal instance running right?

Bug #4107

Reported by:
cyqzz
Reported on: 2008-05-23
Last modified on: 2012-12-26

People

Assignee:
Nick Schermer
CC List:
1 user

Version

Version:
unspecified

Attachments

Additional information