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 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;