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.
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
(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'.
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.
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?
(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!
Fixed in master, but it automatically works if you start with --tab.