aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2009-10-12 17:19:00 +0000
committerThierry Vignaud <tv@mandriva.org>2009-10-12 17:19:00 +0000
commitef4c10366067de6288547fa6486fde2cb132033f (patch)
tree425e04d521f3005c3c929aa096e75d2dc8af07b4
parent597b467c61498c0af85a1145f7897f14b4b38c5c (diff)
downloadrpmdrake-ef4c10366067de6288547fa6486fde2cb132033f.tar
rpmdrake-ef4c10366067de6288547fa6486fde2cb132033f.tar.gz
rpmdrake-ef4c10366067de6288547fa6486fde2cb132033f.tar.bz2
rpmdrake-ef4c10366067de6288547fa6486fde2cb132033f.tar.xz
rpmdrake-ef4c10366067de6288547fa6486fde2cb132033f.zip
(open_help) try harder to display help as user
(run_program::raw() now tries to keep the X11 cookie)
-rw-r--r--rpmdrake.pm3
1 files changed, 1 insertions, 2 deletions
diff --git a/rpmdrake.pm b/rpmdrake.pm
index 7c78900a..71595295 100644
--- a/rpmdrake.pm
+++ b/rpmdrake.pm
@@ -953,8 +953,7 @@ sub add_distrib_update_media {
sub open_help {
my ($mode) = @_;
use run_program;
- # FIXME: run_as_user() doesn't work for drakhelp:
- run_program::raw({ detach => 1 }, 'drakhelp', '--id', $mode ? "software-management-$mode" : 'software-management');
+ run_program::raw({ detach => 1, as_user => 1 }, 'drakhelp', '--id', $mode ? "software-management-$mode" : 'software-management');
N("Help launched in background");
statusbar_msg(N("The help window has been started, it should appear shortly on your desktop."), 1);
}