You are not logged in.
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
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
Online
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
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
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
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
Online