diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2007-08-27 10:42:47 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2007-08-27 10:42:47 +0000 |
commit | 67eb096792ef6906b9f222332d95b838b55f0641 (patch) | |
tree | 1b1f4d8b8c4fe22706d1418c44b4685c2e0587da /menu | |
parent | 8d432090e7e36f007964fb1ca3c73390f7b1b95f (diff) | |
download | common-data-67eb096792ef6906b9f222332d95b838b55f0641.tar common-data-67eb096792ef6906b9f222332d95b838b55f0641.tar.gz common-data-67eb096792ef6906b9f222332d95b838b55f0641.tar.bz2 common-data-67eb096792ef6906b9f222332d95b838b55f0641.tar.xz common-data-67eb096792ef6906b9f222332d95b838b55f0641.zip |
use /var/lib/menu/.xdg_menu_cache when running as root (#32847)
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 453753c..f4626b0 100755 --- a/menu/xdg_menu +++ b/menu/xdg_menu @@ -1909,7 +1909,7 @@ sub prepare_language_keys ($) sub check_cache { - my $cachedir = $ENV{HOME}; + my $cachedir = $> ? $ENV{HOME} : '/var/lib/menu'; return unless -d $cachedir; |