! 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 !
xfce-terminal should be able to open a new tab in an existing window.
Status:
RESOLVED: FIXED
Severity:
enhancement
Product:
Xfce4-terminal
Component:
General

Comments

Description Pi 2005-12-04 09:55:28 CET
Running xfce4-terminal with the --tab option causes a new window to open with
two tabs. I am using version 0.2.4-3+b1 from (I think) the os-cillation.de
debian repository under dbus. 

Reproducible: Always
Steps to Reproduce:
1. Run xfce4-terminal --tab

Actual Results:  
A new terminal window opens, with two tabs. 

Expected Results:  
I would like the --tab option to at least be configurable to open a new tab in
the most-recent window, somewhat like the firefox option. Eulex on the IRC
brought up the question of whether or not the window should be moved to the
current workspace, but I don't have an opinion on that. Configurability in that
respect would be nice if other users would like it.
Comment 1 Paul Tansom 2005-12-12 19:59:48 CET
This bug matches a bug filed against xfce4-terminal which is a symlink to
Terminal. The previous bug is:

http://bugzilla.xfce.org/show_bug.cgi?id=1111
Comment 2 Pi 2005-12-12 20:10:38 CET
(In reply to comment #1)
> This bug matches a bug filed against xfce4-terminal which is a symlink to
> Terminal. The previous bug is:
> 
> http://bugzilla.xfce.org/show_bug.cgi?id=1111

..... No it doesn't. That bug is about backspace failing when the application
"screen" is used in the terminal. I'm talking about a possible 'single-window
mode' or the ability to launch a 'new tab in the most recent window'.
Comment 3 Vittorio Palmisano 2006-08-12 22:06:41 CEST
Created attachment 726 
patch for re-using the last opened window

This patch adds a new command line option (-l --last) in order to re-use the
last opened Terminal window.
Comment 4 Liv 2006-11-30 17:19:17 CET
I had a problem compiling the patched latest Terminal snapshot (to this date). Here is the error mesage:

=========================
gcc -DHAVE_CONFIG_H -I. -I.. -DBINDIR=\"/usr/local/bin\" -DDATADIR=\"/usr/local/share\" -DEXO_API_SUBJECT_TO_CHANGE -DEXO_DISABLE_DEPRECATED -DG_LOG_DOMAIN=\"Terminal\" -DLIBEXECDIR=\"/usr/local/libexec\" -DPACKAGE_LOCALE_DIR=\"/usr/local/share/locale\" -DSN_API_NOT_YET_FROZEN -I..    -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include   -I/usr/local/include/exo-0.3 -I/usr/local/include/xfce4 -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include   -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include   -I/usr/include/startup-notification-1.0   -I/usr/include/freetype2 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/gtk-2.0 -I/usr/include/pango-1.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo   -fno-strict-aliasing -Werror -Wall -DDBUS_API_SUBJECT_TO_CHANGE -g -O2 -MT Terminal-terminal-app.o -MD -MP -MF .deps/Terminal-terminal-app.Tpo -c -o Terminal-terminal-app.o `test -f 'terminal-app.c' || echo './'`terminal-app.c
cc1: warnings being treated as errors
terminal-app.c: In function ‘terminal_app_open_window’:
terminal-app.c:485: warning: assignment from incompatible pointer type
make[3]: Leaving directory `/usr/local/portage/distfiles/Terminal-0.2.5.9svn-23993/terminal'
make[3]: *** [Terminal-terminal-app.o] Error 1
make[2]: Leaving directory `/usr/local/portage/distfiles/Terminal-0.2.5.9svn-23993/terminal'
make[2]: *** [all] Error 2
make[1]: Leaving directory `/usr/local/portage/distfiles/Terminal-0.2.5.9svn-23993'
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
>PKG_CONFIG_PATH='/usr/local/lib/pkgconfig/' ./configure && make && make install (27094) returned '0'
=========================

Could anyone help with tweaking the patch?
Comment 5 Harold Aling 2007-09-23 18:50:35 CEST
(In reply to comment #3)
> Created an attachment (id=726) [details]
> patch for re-using the last opened window
> 
> This patch adds a new command line option (-l --last) in order to re-use the
> last opened Terminal window.
> 

Is this implemented in the current terminal?

It sure sounds like a welcome addition!
Comment 6 Nick Schermer editbugs 2012-12-25 16:12:39 CET
Fixed in master, but it automatically works if you start with --tab.

Bug #1262

Reported by:
Pi
Reported on: 2005-12-04
Last modified on: 2012-12-25

People

Assignee:
Nick Schermer
CC List:
4 users

Version

Version:
unspecified

Attachments

patch for re-using the last opened window (4.41 KB, patch)
2006-08-12 22:06 CEST , Vittorio Palmisano
no flags

Additional information