Commit 4b87fc11 authored by Axel Beckert's avatar Axel Beckert

Add /usr/games/ to $PATH inside generate-flwm-menu-from-desktop-files

Otherwise it skips all games in /usr/games/ as /usr/games usually
isn't in root's $PATH.
parent 6217001b
......@@ -2,6 +2,9 @@ flwm (1.02+git2015.10.03+7dbb30-3) UNRELEASED; urgency=medium
* Harden generate-flwm-menu-from-desktop-files against more kinds of
broken .desktop files to avoid upgrade issues.
* Add /usr/games/ to $PATH inside generate-flwm-menu-from-desktop-files,
otherwise it skips all games in /usr/games/ as /usr/games usually
isn't in root's $PATH.
-- Axel Beckert <abe@debian.org> Sat, 23 Dec 2017 02:27:58 +0100
......
......@@ -52,6 +52,10 @@ my %useless_combination = (
'XFCE/GTK' => 1,
);
# Add /usr/games to $PATH because it's usually not in root's $PATH,
# but we need it for File::Which finding games under /usr/games/.
$ENV{PATH} = $ENV{PATH}.':/usr/games';
# Virginify target directory
$target_dir->remove_tree;
$target_dir->mkpath;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment