diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2007-08-27 12:04:08 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2007-08-27 12:04:08 +0000 |
commit | 4317514b3f175e75e8a7e32eb2a635f56d3a518e (patch) | |
tree | 9440b319db291426049db8f13f9d69a6473dbc71 /menu | |
parent | 67eb096792ef6906b9f222332d95b838b55f0641 (diff) | |
download | common-data-4317514b3f175e75e8a7e32eb2a635f56d3a518e.tar common-data-4317514b3f175e75e8a7e32eb2a635f56d3a518e.tar.gz common-data-4317514b3f175e75e8a7e32eb2a635f56d3a518e.tar.bz2 common-data-4317514b3f175e75e8a7e32eb2a635f56d3a518e.tar.xz common-data-4317514b3f175e75e8a7e32eb2a635f56d3a518e.zip |
(really) use /var/lib/menu/.xdg_menu_cache when running as root (#32847)V2008_0_4mdv
Diffstat (limited to 'menu')
-rwxr-xr-x | menu/xdg_menu | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/menu/xdg_menu b/menu/xdg_menu index f4626b0..f7fcea5 100755 --- a/menu/xdg_menu +++ b/menu/xdg_menu @@ -2017,7 +2017,7 @@ sub write_cache ($) { my ($output) = @_; - my $cachedir = $ENV{HOME}; + my $cachedir = $> ? $ENV{HOME} : '/var/lib/menu'; return unless -d $cachedir; |