summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2009-10-12 17:04:32 +0000
committerThierry Vignaud <tv@mandriva.org>2009-10-12 17:04:32 +0000
commita44f44fb059b131f6793bff52e32759a428fe6c8 (patch)
treec01300268de8c68995dfba4143160dbd5846a422
parent0f56602db6e03d5c1c589c040cfe3802ba34eb97 (diff)
downloadcontrol-center-a44f44fb059b131f6793bff52e32759a428fe6c8.tar
control-center-a44f44fb059b131f6793bff52e32759a428fe6c8.tar.gz
control-center-a44f44fb059b131f6793bff52e32759a428fe6c8.tar.bz2
control-center-a44f44fb059b131f6793bff52e32759a428fe6c8.tar.xz
control-center-a44f44fb059b131f6793bff52e32759a428fe6c8.zip
(run_browser, factory declaration) try harder to display release
notes, bug wizards, ... as user, thus fixing sometimes not being able to run the help browser (#53999)
-rw-r--r--NEWS3
-rwxr-xr-xcontrol-center4
2 files changed, 5 insertions, 2 deletions
diff --git a/NEWS b/NEWS
index f845291b..461c7c62 100644
--- a/NEWS
+++ b/NEWS
@@ -1,3 +1,6 @@
+- fix sometimes not being able to run the help browser (#53999)
+- try harder to display release notes, bug wizards, ... as user
+
Version 12.14 - 12 October 2009, Thierry Vignaud
- fix tool URL which can be a translated UTF-8 string (eg: for CD/DVD
diff --git a/control-center b/control-center
index 61f044d9..8be38358 100755
--- a/control-center
+++ b/control-center
@@ -668,7 +668,7 @@ my @menu_items = (
[ N("/_Help") . N("/What's _New?"), undef, sub { run_browser("What's New?") }, undef, '<Item>', N("Help") ],
[ N("/_Help") . N("/_Errata"), undef, sub { run_browser('Errata') }, undef, '<Item>', N("Help") ],
[ N("/_Help") . N("/_Report Bug"), undef, sub {
- run_program::raw({ detach => 1, setuid => get_parent_uid() }, 'drakbug', '--report', (split(/\s/, $pending_app))[0] || 'drakconf');
+ run_program::raw({ detach => 1, as_user => 1 }, 'drakbug', '--report', (split(/\s/, $pending_app))[0] || 'drakconf');
}, undef, '<Item>' ],
[ N("/_Help") . N("/_About..."), undef, \&about_mdk_cc, undef, '<Item>' ]
);
@@ -681,7 +681,7 @@ sub run_help() {
sub run_browser {
my ($url) = @_;
$url = "http://wiki.mandriva.com/en/$release->{version}_$url" if $url !~ m!^http://!;
- run_program::raw({ detach => 1, setuid => get_parent_uid() }, '/usr/bin/www-browser', $url);
+ run_program::raw({ detach => 1, as_user => 1 }, '/usr/bin/www-browser', $url);
}
my ($menu, $factory) = create_factory_menu($window_global, @menu_items);