summaryrefslogtreecommitdiffstats
path: root/drakconsole
diff options
context:
space:
mode:
authorThierry Vignaud <thierry.vignaud@gmail.com>2013-11-18 02:46:29 +0100
committerThierry Vignaud <thierry.vignaud@gmail.com>2015-12-20 10:25:03 +0100
commitf5e08315f4fa329ff0ade7285045881507ed3d5c (patch)
tree080557bac3559a3b79d3927b429c584464cdc009 /drakconsole
parent72ce188c65decec24a10a9149d582fb222acdf38 (diff)
downloadcontrol-center-f5e08315f4fa329ff0ade7285045881507ed3d5c.tar
control-center-f5e08315f4fa329ff0ade7285045881507ed3d5c.tar.gz
control-center-f5e08315f4fa329ff0ade7285045881507ed3d5c.tar.bz2
control-center-f5e08315f4fa329ff0ade7285045881507ed3d5c.tar.xz
control-center-f5e08315f4fa329ff0ade7285045881507ed3d5c.zip
use introspection for Vte too
Diffstat (limited to 'drakconsole')
-rwxr-xr-xdrakconsole13
1 files changed, 10 insertions, 3 deletions
diff --git a/drakconsole b/drakconsole
index cb258667..6b161df9 100755
--- a/drakconsole
+++ b/drakconsole
@@ -22,12 +22,19 @@ use lib qw(/usr/lib/libDrakX);
use common;
use standalone; #- warning, standalone must be loaded very first, for 'explanations'
use ugtk3 qw(:create :wrappers);
-use Gnome2::Vte;
+use Gtk3;
+use Glib::Object::Introspection;
+
+Glib::Object::Introspection->setup (
+ basename => 'Vte',
+ version => '2.90',
+ package => 'Gtk3::Vte');
+
my $w = ugtk3->new(N("DrakConsole"));
$w->{rwindow}->add(gtkpack_(Gtk3::VBox->new(0, 0),
- 1, my $vte = gtksignal_connect(Gnome2::Vte::Terminal->new, 'child-exited' => sub { ugtk3->exit }),
+ 1, my $vte = gtksignal_connect(Gtk3::Vte::Terminal->new, 'child-exited' => sub { ugtk3->exit }),
0, gtkpack__(create_hbox('end'), gtksignal_connect(Gtk3::Button->new(N("Close")),
clicked => sub { ugtk3->exit })
)
@@ -37,6 +44,6 @@ $w->{rwindow}->show_all;
$vte->grab_focus();
#$ENV{PS1} = qq(Type "exit"\n);
-$vte->fork_command($ENV{SHELL}, [ $ENV{SHELL} ], [ map { "$_=$ENV{$_}" } keys %ENV ], $ENV{PWD}, 0, 0, 0);
+$vte->fork_command_full('default', undef, [ $ENV{SHELL} ], undef, 'default', undef);
$w->main;