I want to run a shell script ~/.local/bin/test.sh via dmenu. If I run dmenu via $mod+D and browse for the entry test.sh I couldn't find it.The path ~/.local/bin is already set to my $PATH variable in ~/.profile$ echo $PATH/home/ubuntu/bin:/home/ubuntu/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/gamesI also removed ~/.cache/dmenu_run and restart i3. What can I do to launch the test script via dmenu?
i3 dmenu does not browse $PATH
i3;dmenu
Delete ~/.cache/dmenu_run or ~/dmenu_cache, depending on which you have, and log back in. After your PATH is reloaded from .profile after logging in, dmenu should regenerate the cache from $PATH. dmenu seems to be bad about renewing its own cache, and needs to be forced to do it sometimes.Also check that you have enabled the executable bit for script:$ ls -l ~/.local/bin/test.sh-rwxrwxrwx 1 user group 152 Jan 11 04:09 /home/user/.local/bin/test.sh