aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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;