You are not logged in.

#1 2020-12-25 17:16:09

erfanjoker
Member
From: Tabriz / Iran
Registered: 2017-03-26
Posts: 174
Website

[SOLVED] Disable a command in Linux

Hi, I know the question may seem silly and maybe an XY Problem, but since im using dmenu to launch chromium, when i start typing its first result is "chromedriver" and the second one is "chromium" so i always have to choose second one, or completely type the name

Since dmenu looks for commands, and commands are binaries in directories we specify in profile file, is there anyway i can disable "chromedriver" command ?

^^>>> which chromedriver                                                                              (127) 20:40:23 
/usr/bin/chromedriver

It is included in chromium package and located its binary in /usr/bin so it gets detected as usual command

Is there anyway to prevent this specific binary to be counted as command ?
Or at least is there anyway to exclude this entry in dmenu_run results ?

Last edited by erfanjoker (2020-12-25 23:37:55)

Offline

#2 2020-12-25 18:01:12

flyingscorpio
Member
Registered: 2020-06-04
Posts: 34

Re: [SOLVED] Disable a command in Linux

alias it to chromium ?

Offline

#3 2020-12-25 18:27:05

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: [SOLVED] Disable a command in Linux

If you bothered to actually use chromium to google your issue, you would find any number of threads, including on thee boards, descrbing how to remove items from dmenu.

Stop being such a help vampire.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#4 2020-12-25 18:27:15

erfanjoker
Member
From: Tabriz / Iran
Registered: 2017-03-26
Posts: 174
Website

Re: [SOLVED] Disable a command in Linux

flyingscorpio wrote:

alias it to chromium ?

It could be, but not a good solution since its awkward to type chromedriver and get chromium running

Offline

#5 2020-12-25 19:20:27

tucuxi
Member
From: Switzerland
Registered: 2020-03-08
Posts: 291

Re: [SOLVED] Disable a command in Linux

Take a look at /usr/bin/{dmenu_path,dmenu_run}. All dmenu_run does is pipe ~/.cache/dmenu_run, which in turn is prepared by dmenu_path, into dmenu.

You can easily write your own version of dmenu_run that filters out files you are not interested in.

Offline

#6 2020-12-25 19:36:10

CarbonChauvinist
Member
Registered: 2012-06-16
Posts: 413
Website

Re: [SOLVED] Disable a command in Linux

http://tools.suckless.org/dmenu/patches/highpriority/

Last edited by CarbonChauvinist (2020-12-25 20:24:08)


"the wind-blown way, wanna win? don't play"

Offline

#7 2020-12-25 23:37:37

erfanjoker
Member
From: Tabriz / Iran
Registered: 2017-03-26
Posts: 174
Website

Re: [SOLVED] Disable a command in Linux

tucuxi wrote:

Take a look at /usr/bin/{dmenu_path,dmenu_run}. All dmenu_run does is pipe ~/.cache/dmenu_run, which in turn is prepared by dmenu_path, into dmenu.

You can easily write your own version of dmenu_run that filters out files you are not interested in.

Thanks a lot for explanation.

Thanks, it did the trick

Offline

Board footer

Powered by FluxBB