From e5b7d54181f7a08d5fa664d7f1aaad4057005aa3 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Thu, 31 Jan 2008 14:52:18 +0000 Subject: - do not fork a useless shell when running drakhelp - open help as user --- perl-install/standalone/drakbug | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'perl-install/standalone/drakbug') diff --git a/perl-install/standalone/drakbug b/perl-install/standalone/drakbug index 7dc2c7e9a..1dd87f6b0 100755 --- a/perl-install/standalone/drakbug +++ b/perl-install/standalone/drakbug @@ -165,7 +165,10 @@ gtkadd($window->{window}, ), 0, gtkpack(Gtk2::HSeparator->new), 0, gtkpack(create_hbox('edge'), - gtksignal_connect(Gtk2::Button->new(N("Help")), clicked => sub { system("drakhelp --id drakbug &") }), + gtksignal_connect( + Gtk2::Button->new(N("Help")), clicked => sub { + run_program::raw({ detach => 1, setuid => $parent_uid }, 'drakhelp', '--id', 'drakbug'); + }), gtkpack(create_hbox('end'), gtksignal_connect(Gtk2::Button->new(N("Report")), clicked => \&report_bug_to_bugzilla), gtksignal_connect(Gtk2::Button->new(N("Close")), clicked => sub { ugtk2->exit(0) }), -- cgit v1.2.1