Difference between revisions of "DMenu"
From Manjaro
Views
Actions
Namespaces
Variants
Tools
imported>Stagiros |
imported>Stagiros |
||
Line 19: | Line 19: | ||
<pre>sudo nano /usr/bin/dmenu_run</pre> | <pre>sudo nano /usr/bin/dmenu_run</pre> | ||
Add a line setting your LANG variable | Add a line setting your LANG variable to your actual language locale before the line that calls dmenu: | ||
<pre>#!/bin/sh | <pre>#!/bin/sh | ||
LANG="en_GB.UTF-8" | LANG="en_GB.UTF-8" <-- For me this is the line added. Add yours accordingly. | ||
dmenu_path | dmenu "$@" | ${SHELL:-"/bin/sh"} &</pre> | dmenu_path | dmenu "$@" | ${SHELL:-"/bin/sh"} &</pre> | ||
and save. | and save. |
Revision as of 19:17, 27 September 2017
Overview
Sometimes for no apparent reason users face the following dmenu problem:
A. When calling dmenu from a key binding in their environment dmenu comes up but when they continue to select anything in dmenu, it disappears from the screen and does not execute anything.
B. Trying to start dmenu from the terminal, the error:
"warning: no locale support"
appears.
Solution
Assuming that you have correctly set up your system's LOCALE settings, here is a simple solution to this problem:
Edit file /usr/bin/dmenu_run
sudo nano /usr/bin/dmenu_run
Add a line setting your LANG variable to your actual language locale before the line that calls dmenu:
#!/bin/sh LANG="en_GB.UTF-8" <-- For me this is the line added. Add yours accordingly. dmenu_path | dmenu "$@" | ${SHELL:-"/bin/sh"} &
and save.
Now dmenu works correctly.