You are not logged in.

#1 2020-09-15 14:21:16

Irets
Member
Registered: 2019-02-01
Posts: 64

[SOLVED] dmenu fails & returns "zsh: unknown sort specifier"

Hello,
I'm making a switch from rofi to dmenu and I'm in need of guidance trying to launch a lutris game through it.
The command for launching the game through a terminal emulator is

lutris lutris:rungameid/1

so I created a file called "Battle.net (WoW)" to ~/.bin/ and running the file with

./Battle.net\ \(WoW\)

works.
Running the file through dmenu doesn't.
If I run

dmenu_run

through my terminal emulator and then select the entry, it outputs "zsh: unkown sort specifier".

The game in question is Battle.net w/ WoW retail+classic dependencies.
I'm using dwm and have setup dmenu to open with the following options defined in dwm's config.h:

static const char *dmenucmd[] = { "dmenu_run", "-m", dmenumon, "-fn", dmenufont, "-nb", col_gray1, "-nf", col_gray3, "-sb", col_ahokared, "-sf", col_gray4, NULL };

edit: FWIW here's the install script I used.

Last edited by Irets (2020-09-15 15:05:53)

Offline

#2 2020-09-15 14:35:46

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 24,240
Website

Re: [SOLVED] dmenu fails & returns "zsh: unknown sort specifier"

And what exactly is in the Battle.net (WoW) script?  Is ~/.bin in your PATH, and where/when (what file) is it added to PATH?


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#3 2020-09-15 14:42:56

Irets
Member
Registered: 2019-02-01
Posts: 64

Re: [SOLVED] dmenu fails & returns "zsh: unknown sort specifier"

All I have inside script is

lutris lutris:rungameid/1

and the folder which holds it is in my PATH.
~/.bin gets added to my PATH when I login.

[irets@navi /home/irets ]$ tail -n 1 .zshrc
export PATH="$HOME/.bin:$PATH"
[irets@navi /home/irets ]$ cat .bin/Battle.net\ \(WoW\)
lutris lutris:rungameid/1
[irets@navi /home/irets ]$

Last edited by Irets (2020-09-15 14:47:55)

Offline

#4 2020-09-15 14:47:34

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 10,455

Re: [SOLVED] dmenu fails & returns "zsh: unknown sort specifier"

I assume dmenu just passes the name as is and zsh interprets the parentheses as a Parameter Expansion Flag

What happens if you pick a filename without potentially interpretable characters?

Offline

#5 2020-09-15 15:04:06

Irets
Member
Registered: 2019-02-01
Posts: 64

Re: [SOLVED] dmenu fails & returns "zsh: unknown sort specifier"

V1del wrote:

I assume dmenu just passes the name as is and zsh interprets the parentheses as a Parameter Expansion Flag

What happens if you pick a filename without potentially interpretable characters?

You were right!
I renamed the file to Battle.net+WoW and it launches as it should.
You could call this a workaround but I'm happy with the current outcome so I'll mark this solved.

Thank you very much.

Offline

#6 2020-09-15 15:06:12

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 24,240
Website

Re: [SOLVED] dmenu fails & returns "zsh: unknown sort specifier"

This then looks like an upstream bug and should be reported to the authors of dmenu_run.


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

Board footer

Powered by FluxBB