The i3 FAQ has migrated to https://github.com/i3/i3/discussions. All content here is read-only.
Ask Your Question
0

Why does dmenu not pick up an application

asked 2012-11-22 17:31:29 +0000

Chris Jefferson gravatar image

I have added a directory called '/home/caj/scripts' to my $PATH, via .bashrc, which contains a symlink defined as follows:

lrwxrwxrwx 1 caj caj 55 May 19 2012 subl -> /home/caj/progs/SublimeText/Sublime Text 2/sublime_text

This link means from any terminal I can type 'subl', and as you might expect, sublime_text opens.

However, the dmenu does not seem to be picking this up, and I cannot figure out why. Any suggestions?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2012-11-22 20:17:50 +0000

joepd gravatar image

Dunno, possibly the cache is somehow not updated. I would delete the cache-file and hope for the best. To find the cache-file, run less $(which dmenu_run). Good luck.

edit flag offensive delete link more

Comments

Thanks. dmenu_run pointed me to dmenu_path. I found the cache file by stracing dmenu_path. It is ~/.dmenu_cache on my computer. By deleting this it now seems to be recreated correctly. I guess this was originally run without my .bashrc being parsed, to get my path?

Chris Jefferson gravatar imageChris Jefferson ( 2012-11-22 22:32:11 +0000 )edit

My installation of `dmenu_run` compares the timestamp of its cachefile with the timestamps of executables in $PATH. If the cache is older than the newest file, the cache will be rewritten.

joepd gravatar imagejoepd ( 2012-11-22 23:13:06 +0000 )edit

Question Tools

Stats

Asked: 2012-11-22 17:31:29 +0000

Seen: 3,222 times

Last updated: Nov 22 '12