aboutsummaryrefslogtreecommitdiffstats
path: root/menu/xdg_menu
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2007-08-27 10:42:47 +0000
committerPascal Rigaux <pixel@mandriva.com>2007-08-27 10:42:47 +0000
commit67eb096792ef6906b9f222332d95b838b55f0641 (patch)
tree1b1f4d8b8c4fe22706d1418c44b4685c2e0587da /menu/xdg_menu
parent8d432090e7e36f007964fb1ca3c73390f7b1b95f (diff)
downloadcommon-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/xdg_menu')
-rwxr-xr-xmenu/xdg_menu2
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;