diff options
-rw-r--r-- | NEWS | 2 | ||||
-rw-r--r-- | Rpmdrake/gui.pm | 2 |
2 files changed, 4 insertions, 0 deletions
@@ -1,3 +1,5 @@ +- fix opening URLs in root's firefox in some cases by redefining HOME (mga#287) + Version 5.26.11 - 14 Oct 2011, Thierry Vignaud - better message for orphans (#902) diff --git a/Rpmdrake/gui.pm b/Rpmdrake/gui.pm index 4b1083d2..428085c5 100644 --- a/Rpmdrake/gui.pm +++ b/Rpmdrake/gui.pm @@ -1049,6 +1049,8 @@ sub sort_callback { sub run_help_callback { my (undef, $url) = @_; + my ($user) = grep { $_->[2] eq $ENV{USERHELPER_UID} } list_passwd(); + local $ENV{HOME} = $user->[7] if $user && $ENV{USERHELPER_UID}; run_program::raw({ detach => 1, as_user => 1 }, 'www-browser', $url); } |